Source Installation NGINX:TAR-ZXVF Nginx-1.8.0.tar.gz-c/nginx/#解压NginxRPM-IVH keepalived-1.2.13-5.el6_6.i686.rpm#安装keepalivedService Iptables Status#查看系统防火墙状态Service Iptables Stop #停止系统防火墙 (Restore after reboot)Chkconfig iptables--list#查看系统防火墙Chkconfig iptables off#禁用防火墙Install the Pre library: Yum install-y pcre-devel online or Offline installation add soft connection: Cd/lib/ls *pcre*find/-type f-name *libpcre.so.*ln-s/lib/libpcre.so.0.0. 1/lib/libpcre.so.1 Compiling and installing NGINX:CD/nginx/ Make && make Installcd/usr/local/nginx/./sbin/nginx start the Nginx server start Nginx http://192.168.38.128/browser access, test Nginx is available Ps-aux | grep nginx View Nginx process./sbin/nginx-s Stop to stop nginx (not used)./sbin/nginx-s quit to complete the task exit./sbin/nginx-s reload equivalent to reboot (load config file)./sbin/nginx-tCheck the nginx.conf configuration file SyntaxNginx-vView version
Enter Tomcat1sh/apache-tomcat-7.0.47/bin/startup.shtail-n catalina.out http://192.168.38.131:8080/Install keepalived: Rpm-qa | grep opensslrpm-ivh keepalived-1.2.13-5.el6_6.i686.rpmrpm-ql keepalivedservice keepalived startservice keepalived Restartservice keepalived stoptail-f/var/log/messagesip add show Eth0vim check_nginx.shhttp://192.168.38.136/ You can access the tomcat./check_nginx.sh//first to turn off Nginx proxy configuration (proxy multiple Tomcat):
server {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
location /jenkins {
proxy_pass http://localhost:8082;
}
location /go {
proxy_pass http://localhost:8153;
}
error_page 500502503504/50x.html;
location =/50x.html {
root html;
}
}
From for notes (Wiz)
List of attachments
30.Nginx Cluster Build Notes