30.Nginx Cluster Build Notes

Source: Internet
Author: User

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):
  1. server {
  2. listen 80;
  3. server_name localhost;
  4. #charset koi8-r;
  5. #access_log logs/host.access.log main;
  6. location /jenkins {
  7. proxy_pass http://localhost:8082;
  8. }
  9. location /go {
  10. proxy_pass http://localhost:8153;
  11. }
  12. error_page 500502503504/50x.html;
  13. location =/50x.html {
  14. root html;
  15. }
  16. }



From for notes (Wiz)



List of attachments

30.Nginx Cluster Build Notes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.