nginx-1.8.1 Installation:
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/
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
#make &&make Install
#nginx-T
#nginx//Start Nginx
Tomcat8.01 Installation:
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
#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
#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
#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
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