搜档网
当前位置:搜档网 › Nginx重新配置模块

Nginx重新配置模块

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
}

相关主题