码迷,mamicode.com
首页 > 其他好文 > 详细

Tomcat8.01及nginx-1.8.1安装

时间:2016-08-05 18:01:31      阅读:218      评论:0      收藏:0      [点我收藏+]

标签:tomcat nginx

  1. nginx-1.8.1安装:

  2. 文件目录:/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/

  3. 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

  4. #make&&make install

  5. #nginx -t

  6. #nginx //启动nginx
    Tomcat8.01 安装:

  7. 创建目录:
    #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 安装文件

  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/ //准备apache-tomcat-8.0.27.tar.gz安装文件

  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 //查看配置文件
    #/server/application/tomcat/bin/startup.sh //启动tomcat
    # netstat -anpt //查看系统运行程序状态
    # ps -ef |grep java

  11. 配置与测试:
    #vim tomcat-users.xml
    #netstat anpt

转载请注明:51geeks  Tomcat8.01及nginx-1.8.1安装


本文出自 “9099360” 博客,请务必保留此出处http://9109360.blog.51cto.com/9099360/1834802

Tomcat8.01及nginx-1.8.1安装

标签:tomcat nginx

原文地址:http://9109360.blog.51cto.com/9099360/1834802

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!