当前位置: 首页 > news >正文

可以自己做网站这么做互联网营销主要学什么

可以自己做网站这么做,互联网营销主要学什么,wordpress支付可见,威海网页设计制作公司网上出现的比较多安装方法要么是源码安装#xff0c;要么是yum安装#xff0c;我发觉都要配置很多属性#xff0c;比较麻烦#xff0c;所以现在我在centos7长用 run文件来安装 http://get.enterprisedb.com/postgresql/postgresql-9.5.1-1-linux-x64.run 这里的安装shell整…网上出现的比较多安装方法要么是源码安装要么是yum安装我发觉都要配置很多属性比较麻烦所以现在我在centos7长用 run文件来安装 http://get.enterprisedb.com/postgresql/postgresql-9.5.1-1-linux-x64.run 这里的安装shell整理的很零乱后面会整理一个完整版本的出来 wget https://pgbouncer.github.io/downloads/files/1.7.2/pgbouncer-1.7.2.tar.gz wget http://get.enterprisedb.com/postgresql/postgresql-9.5.1-1-linux-x64.run wget https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gztar zxvf libevent-2.0.22-stable.tar.gz cd libevent-2.0.22-stable ./configure --prefix/usr/local/libevent make make install cd ..tar zxvf pgbouncer-1.7.2.tar.gz cd pgbouncer-1.7.2 ./configure --prefix/usr/local/pgbouncer/ --with-libevent/usr/local/libevent/ make make install cd ..chmod 777 postgresql-9.5.1-1-linux-x64.run ./postgresql-9.5.1-1-linux-x64.runsudo chown -R postgres.postgres /alidata/pgsql sudo chown -R postgres.postgres /usr/local/pgbouncer#以下为配置环境变量部分这里还没写好你可以参考 su - postgres cp .bash_profile /alidata/pgsql cp .bashrc /alidata/pgsql su - postgresexport PGHOME/alidata/pgsql export PATH$PGHOME/bin:$PATH export PGDATA$PGHOME/data export LD_LIBRARY_PATH$PGHOME/lib export LD_LIBRARY_PATH/usr/local/libevent/lib:$LD_LIBRARY_PATH    用run文件安装就比较简单但是安装完成后它会默认安装成linux的系统服务所以这里需要从源码里面去拷贝 PostgreSQL的开机自启动脚本位于PostgreSQL源码目录的contrib/start-scripts路径下 linux文件即为linux系统上的启动脚本 #chmod ax linux #cp linux /etc/init.d/postgresql #修改/etc/init.d/postgresql文件的两个变量 prefix设置为postgresql的安装路径/alidata/pgsql 附此文件如果你没下载源码可以直接通过在 vi postgresql新建一个文件 把下面这段拷贝进去保存 拷贝进去放到 /etc/init.d/下 然后service postgresql status 可以查询对应的操作 #! /bin/sh# chkconfig: 2345 98 02 # description: PostgreSQL RDBMS# This is an example of a start/stop script for SysV-style init, such # as is used on Linux systems. You should edit some of the variables # and maybe the echo commands. # # Place this file at /etc/init.d/postgresql (or # /etc/rc.d/init.d/postgresql) and make symlinks to # /etc/rc.d/rc0.d/K02postgresql # /etc/rc.d/rc1.d/K02postgresql # /etc/rc.d/rc2.d/K02postgresql # /etc/rc.d/rc3.d/S98postgresql # /etc/rc.d/rc4.d/S98postgresql # /etc/rc.d/rc5.d/S98postgresql # Or, if you have chkconfig, simply: # chkconfig --add postgresql # # Proper init scripts on Linux systems normally require setting lock # and pid files under /var/run as well as reacting to network # settings, so you should treat this with care.# Original author: Ryan Kirkpatrick pgsqlrkirkpat.net# contrib/start-scripts/linux## EDIT FROM HERE# Installation prefix prefix/alidata/pgsql# Data directory PGDATA/alidata/data# Who to run the postmaster as, usually postgres. (NOT root) PGUSERpostgres# Where to keep a log file PGLOG$PGDATA/serverlog# Its often a good idea to protect the postmaster from being killed by the # OOM killer (which will tend to preferentially kill the postmaster because # of the way it accounts for shared memory). To do that, uncomment these # three lines: #PG_OOM_ADJUST_FILE/proc/self/oom_score_adj #PG_MASTER_OOM_SCORE_ADJ-1000 #PG_CHILD_OOM_SCORE_ADJ0 # Older Linux kernels may not have /proc/self/oom_score_adj, but instead # /proc/self/oom_adj, which works similarly except for having a different # range of scores. For such a system, uncomment these three lines instead: #PG_OOM_ADJUST_FILE/proc/self/oom_adj #PG_MASTER_OOM_SCORE_ADJ-17 #PG_CHILD_OOM_SCORE_ADJ0## STOP EDITING HERE# The path that is to be used for the script PATH/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin# What to use to start up the postmaster. (If you want the script to wait # until the server has started, you could use pg_ctl start -w here. # But without -w, pg_ctl adds no value.) DAEMON$prefix/bin/postmaster# What to use to shut down the postmaster PGCTL$prefix/bin/pg_ctlset -e# Only start if we can find the postmaster. test -x $DAEMON || {echo $DAEMON not foundif [ $1 stop ]then exit 0else exit 5fi }# If we want to tell child processes to adjust their OOM scores, set up the # necessary environment variables. Cant just export them through the su. if [ -e $PG_OOM_ADJUST_FILE -a -n $PG_CHILD_OOM_SCORE_ADJ ] thenDAEMON_ENVPG_OOM_ADJUST_FILE$PG_OOM_ADJUST_FILE PG_OOM_ADJUST_VALUE$PG_CHILD_OOM_SCORE_ADJ fi# Parse command line parameters. case $1 instart)echo -n Starting PostgreSQL: test -e $PG_OOM_ADJUST_FILE echo $PG_MASTER_OOM_SCORE_ADJ $PG_OOM_ADJUST_FILEsu - $PGUSER -c $DAEMON_ENV $DAEMON -D $PGDATA $PGLOG 21echo ok;;stop)echo -n Stopping PostgreSQL: su - $PGUSER -c $PGCTL stop -D $PGDATA -s -m fastecho ok;;restart)echo -n Restarting PostgreSQL: su - $PGUSER -c $PGCTL stop -D $PGDATA -s -m fast -wtest -e $PG_OOM_ADJUST_FILE echo $PG_MASTER_OOM_SCORE_ADJ $PG_OOM_ADJUST_FILEsu - $PGUSER -c $DAEMON_ENV $DAEMON -D $PGDATA $PGLOG 21echo ok;;reload)echo -n Reload PostgreSQL: su - $PGUSER -c $PGCTL reload -D $PGDATA -secho ok;;status)su - $PGUSER -c $PGCTL status -D $PGDATA;;*)# Print helpecho Usage: $0 {start|stop|restart|reload|status} 12exit 1;; esacexit 0chkconfig --add 服务名称          (首先添加为系统服务,注意add前面有两个横杠) chkconfig --leve 启动级别 服务名 on          说明3级别代表在命令行模式启动5级别代表在图形界面启动on表示开启  chkconfig --leve 启动级别 服务名 off               说明off表示关闭自启动  例如chkconfig --level 3 postgresql on                     (说明让postgresql 服务在命令行模式随系统启动)转载于:https://www.cnblogs.com/fangyuan303687320/p/5452430.html
http://www.zqtcl.cn/news/168999/

相关文章:

  • 包头焦点网站建设郑州包装设计公司
  • 建行官方网站首页做跨境电商亏死了
  • 河北智能网站建设平台卖链接的网站
  • 网站建设简单点的服装搭配网站建设策划书
  • 哪一个军事网站做的比较好今天第四针最新消息
  • 黄页网站推广app软件查企业公司用什么软件
  • 网站设计机构培训全自动网页制作系统源码
  • 外贸网站建设收益深圳建设厅官网
  • 跟网站开发有关的内容东莞市生态环境局
  • dw软件做的东西怎么在网站用网站备案抽查通过
  • 重庆建设集团网站首页wordpress主题inn
  • 对京东网站建设的总结湖北做网站的
  • 杭州网站开发后端招郑州工装定制
  • 网站搭建论文filetype ppt 网站建设
  • 个人做营利性质网站会怎么样如何引用网站上的资料做文献
  • 新网站制作市场泰安做网站哪家好
  • 常熟苏州网站建设flash如何制作网站
  • 电商网站都是用什么做的网站服务器维护方案
  • 简述企业网站建设的流程手机怎么自己做网页
  • 网站备案信息管理呼图壁网站建设
  • 网站建设学习资料开发一套软件需要多少钱
  • 大庆网站设计衡阳seo网站推广
  • 基层科普网站建设的现状自己做的网站怎样链接数据库
  • 网站建设工程师的职位要求化妆品行业网站开发
  • 做海报有什么素材网站知乎什么样的蓝色做网站做好看
  • 餐饮网站建设网站wordpress优酷视频插件下载
  • 什么网站做广告效果好wordpress中文cms
  • seo与网站优化广州洲聚网站开发
  • 建一个自己用的网站要多少钱北京网站建设价格天
  • 免费做婚礼邀请函的网站如何设定旅游网站seo核心关键词