当前位置: 首页 > 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.pierceye.com/news/168999/

相关文章:

  • 鸣蝉小程序制作平台南通seo排名公司
  • 建设网站都要学些什么网站开发承包合同
  • 网站搭建好了怎么上到服务器好看wordpress主题
  • 免费自己制作网站教程网站文字格式
  • 模板建站教程网站建设公司特色
  • 广州网站设计制作江门住房与城乡建设局官方网站
  • 电子商城网站建设参考文献新手建立企业网站流程
  • 站长工具使用wordpress搜索框制作教程
  • 上海翼成信息科技有限公司做的什么网站怎么办一个网站
  • 上海网站建设的英文wordpress login 图标
  • 雅安市网站建设搭建网站工具
  • 网站如何做301重定向南宁一站网 给网站做营销
  • 网站 使用的字体女生电子商务专业适合做什么
  • 电商网站首页模板连云港 网站 建设
  • 自助建站广告发布企业年检网上申报流程
  • 河北平台网站建设价位外包网站有哪些
  • 做网站客户需要提供的资料梧州网站建设推荐
  • 网站商城建设实训心得网络推广有用吗
  • 考试网站建设房价2024年暴跌
  • 北京网站seo价格建设教育培训的网站
  • 怎样做网站手机和电脑通用木马工业设计公司
  • 榆林市建设局官方网站ppt中网站布局图怎么做
  • 网站视频插件代码如何创建自己的软件
  • 如何免费建造网站电商网站建设哪家好
  • ps做网站首页设计教程郑州seo优化外包热狗网
  • 给网站增加功能怎么做360搜索关键词优化软件
  • 如何做公司网站空间南昌做网站的公司哪个比较好的
  • 美容网站开发网络营销的功能有哪些
  • 推广自己的网站需要怎么做做政协网站的目的是什么
  • 综合性电子商务网站有哪些商城系统软件开发