Nginx重新配置模块

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

iTools 可以在windows上面安装苹果手机应用
team viewer 101 637 566
/opt/stellar/bin/stellarctl start
/opt/stellar/bin/stellarctl stop
检查现在安装有哪些模块
/usr/local/nginx/sbin/nginx -V
进入解压目录,进行重新配置,只能进行make
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_realip_module --with-http_gzip_static_module --add-module=/usr/yonyou/nginx-goodies-nginx-sticky-module-ng-08a395c66e42 --with-stream
make
备份旧的nginx程序
cp /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.bak
把新的nginx程序覆盖旧的
cp objs/nginx /usr/local/nginx/sbin/nginx
测试新的nginx程序是否正确
/usr/local/nginx/sbin/nginx -t
平滑重启nginx
/usr/local/nginx/sbin/nginx -s reload
查看ngixn版本极其编译参数
/usr/local/nginx/sbin/nginx -V
如果出现错误,用下面的命令重新加载配置文件即可
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
华融安装
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_realip_module --with-http_gzip_static_module --add-module=/home/yonyou/allsoftware/nginx-goodies-nginx-sticky-module-ng-08a395c66e42 --with-stream
#mkdir /etc/keepalived
#cp /usr/local/keepalived/etc/keepalived/keepalived.conf /etc/keepalived/
#cp /usr/local/keepalived/etc/rc.d/init.d/keepalived /etc/init.d/
#cp /usr/local/keepalived/etc/sysconfig/keepalived /etc/sysconfig/
#ln -s /usr/local/sbin/keepalived /usr/sbin/
#ln -s /usr/local/keepalived/sbin/keepalived /sbin/
#chkconfig keepalived on
create database emmagentdb default character set utf8 collate utf8_general_ci;
grant all privileges on emmagentdb.* to 'emmagent'@'localhost' identified by 'Emmagentq1w2e3r4!';
grant all privileges on emmagentdb.* to 'emmagent'@'%' identified by 'Emmagentq1w2e3r4!';
flush privileges;
create user 'emm'@'%' identified by 'Emmq1w2e3r4!';
create database emmdb default character set utf8 collate utf8_general_ci;
grant all privileges on emmdb.* to 'emm'@'localhost' identified by 'Emmq1w2e3r4!';
grant all privileges on emmdb.* to 'emm'@'%' identified by 'Emmq1w2e3r4!;
flush privileges;
vrrp_script chk_nginx {
script "/etc/keepalived/nginx_check.sh"
interval 2
weight -20
}

相关文档
最新文档