标签:tomcat nginx
nginx-1.8.1安装:
文件目录:/server/application/tools
# tar xf nginx-1.8.1.tar.gz -C /server/application/ //文件解压到 /server/application/
# tar xf pcre-8.38.tar.gz -C /server/application/
pcre安装:
# cd /server/application/prce-8.38
#./configure
# make&&make install
建立用户:
#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 //启动nginx
Tomcat8.01 安装:
创建目录:
#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/ //准备jdk-8u60-linux-x64.tar.gz 安装文件
#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/ //准备apache-tomcat-8.0.27.tar.gz安装文件
#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 //查看配置文件
#/server/application/tomcat/bin/startup.sh //启动tomcat
# netstat -anpt //查看系统运行程序状态
# ps -ef |grep java
配置与测试:
#vim tomcat-users.xml
#netstat anpt
转载请注明:51geeks Tomcat8.01及nginx-1.8.1安装
本文出自 “9099360” 博客,请务必保留此出处http://9109360.blog.51cto.com/9099360/1834802
标签:tomcat nginx
原文地址:http://9109360.blog.51cto.com/9099360/1834802