Tomcat8.01 and nginx-1.8.1 Installation

Source: Internet
Author: User

  1. nginx-1.8.1 Installation:

  2. File directory:/server/application/tools
    # tar XF nginx-1.8.1.tar.gz-c/server/application///files extracted to/server/application/
    # Tar XF pcre-8.38.tar.gz-c/server/application/

  3. Pcre Installation:
    # cd/server/application/prce-8.38
    #./configure
    # Make&&make Install
    To create a user:
    #id Nginx
    #useradd Nginx
    #./configure–prefix=/usr–sbin-path=/usr/sbin/nginx–conf-path=/etc/nginx/nginx.conf–error-log-path=/var/log/ nginx/error.log–http-log-path=/var/log/nginx/access.log–pid-path=/var/run/nginx/nginx.pid–lock-path=/var/lock/ nginx.lock–user=nginx–group=nginx–with-http_ssl_module–with-http_flv_module–with-http_stub_status_module– with-http_gzip_static_module–http-client-body-temp-path=/var/tmp/nginx/client/–http-proxy-temp-path=/var/tmp/ nginx/proxy/–http-fastcgi-temp-path=/var/tmp/nginx/fcgi/–http-uwsgi-temp-path=/var/tmp/nginx/uwsgi– Http-scgi-temp-path=/var/tmp/nginx/scgi–with-pcre

  4. #make &&make Install

  5. #nginx-T

  6. #nginx//Start Nginx
    Tomcat8.01 Installation:

  7. To create a directory:
    #mkdir/server/application/
    #mkdir/server/application/tools
    #rz jdk-8u60-linux-x64.tar.gz
    #tar XF jdk-8u60-linux-x64.tar.gz-c/server/application///Preparing jdk-8u60-linux-x64.tar.gz installation files

  8. #ln-S JDK1.8.0_60/JDK
    #sed-i.ori ' $a export java_home=/server/application/jdk\nexport path= $JAVA _home/bin: $JAVA _home/jre/bin: $PATH \ Nexport classpath=. $CLASSPATH: $JAVA _home/lib: $JAVA _home/jre/lib: $JAVA _home/lib/tools.jar '/etc/profile

  9. #source/etc/profile
    #java-version
    #tar XF apache-tomcat-8.0.27.tar.gz-c/server/application///Preparing apache-tomcat-8.0.27.tar.gz installation files

  10. #ln-S apache-tomcat-8.0.27//server/application/tomcat
    #echo ' Export Tomcat_home=/server/application/tomcat ' >>/etc/profile
    #source/etc/profile
    #chown-R root.root/server/application/jdk//server/application/tomcat/
    #tail-4/etc/profile//view configuration file
    #/server/application/tomcat/bin/startup.sh//Start Tomcat
    # NETSTAT-ANPT//View system Run program status
    # Ps-ef |grep Java

  11. Configuration and testing:
    #vim Tomcat-users.xml
    #netstat ANPT

Reproduced please specify: 51geeks Tomcat8.01 and nginx-1.8.1 installation


This article is from the "9099360" blog, please be sure to keep this source http://9109360.blog.51cto.com/9099360/1834802

Tomcat8.01 and nginx-1.8.1 Installation

Related Article

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.