纯净版linux部署Java应用帮助手册

Java安装:

http://www.cnblogs.com/zhengyuhong/p/3383571.html

 

/etc/profile 配置为:

export LANG=zh_CN.UTF8
export LANGVAR=zh_CN.UTF8
export LC_CTYPE=zh_CN.UTF8
export JAVA_OPTS='-Dfile.encoding=UTF-8 -Djava.awt.headless=true -Xmx1000m –Xms512m'
export JAVA_HOME=/usr/local/java/jdk1.8.0_45
export JRE_HOME=/usr/local/java/jdk1.8.0_45/jre
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib:$CLASSPATH

 

Tomcat安装:

unzip apache-tomcat-7.0.59
mv apache-tomcat-7.0.59 /usr/
mv apache-tomcat-7.0.59 tomcat

chmod +x *.sh

 

/apache-tomcat-7.0.59/bin/catalina.sh  98行增加配置

export JAVA_HOME=/usr/local/java/jdk1.8.0_45
export JAVA_OPTS='-Djava.awt.headless=true -Xmx3096m -Xms1536m -XX:PermSize=64m -XX:MaxNewSize=128m -XX:MaxPermSize=1024m -Xss512k'

 

Nginx安装:

a.下载nginx源码包
#>wget -c http://sysoev.ru/nginx/nginx-*.tar.gz
   #>svn checkout http://nginx-upstream-jvm-route.googlecode.com/svn/trunk/ nginx-upstream-jvm-route-read-only
b..解压
   #>tar zxvf nginx-*
   #>cd nginx-*

yum -y install patch
c.打补丁
   #>patch -p0 < ../nginx-upstream-jvm-route-read-only/jvm_route.patch
d.添加www用户
   #>useradd www
e.配置安装
   #>./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --add-module=/root/nginx-upstream-jvm-route-read-only
  #>make
  #>make install

  

 

MySQL 安装:

      http://www.iteye.com/topic/1128407

 

 

Linux防火墙关闭

service firewalld stop


//永远禁止
systemctl stop firewalld.service #停止firewall

systemctl disable firewalld.service #禁止firewall开机启动

 

你可能感兴趣的:(linux)