标签:source exp margin tar.gz top title tom iss 脚本
1.部署前准备tar -zxf jdk-8u151-linux-x64.tar.gz
mv jdk1.8.0_151/ /usr/local/
#编辑名为java.sh的shell脚本
vi /etc/profile.d/java.sh
JAVA_HOME=/usr/local/jdk1.8.0_151
JAVA_BIN=/usr/local/jdk1.8.0_151/bin
JRE_HOME=/usr/local/jdk1.8.0_151/jre
PATH=$PATH:/usr/local/jdk1.8.0_151/bin:/usr/local/jdk1.8.0_151/jre/bin
CLASSPATH=/usr/local/jdk1.8.0_151/jre/lib:/usr/local/jdk1.8.0_151/lib:/usr/local/jdk1.8.0_151/lib/charsets.jar
#和通过java -version命令测试是否安装成功,和Windows一样
. /etc/profile.d/java.sh
java -version
tar -zxf apache-tomcat-7.0.81.tar.gz
mv apache-tomcat-7.0.81 /usr/local/tomcat7
cd /usr/local/tomcat7/
#通过shell脚本,添加
vim /etc/profile.d/tomcat.sh
export CATALINA_HOME=/usr/local/tomcat7
export PATH=$PATH:$CATALINA_HOME/bin
. /etc/profile.d/tomcat.sh
catalina.sh start
catalina.sh stop
#通过wcp将gisserver拷贝到webapps目录下
#启动tomcat
catalina.sh start
在浏览器中输入:http://您访问的ip地址:端口号/gisserver 例如
yum grouplist
#如果没有执行下面命令安装中文字体
yum groupinstall -y "Chinese Support"
vi /etc/sysconfig/i18n
LANG=" zh_CN.gb18030"
SUPPORTED="zh_CN.gb2312:zh_CN.gb18030:zh_CN.gbk:zh_CN.utf8:zh_CN"
SYSFONT="latarcyrheb-sun16"
vi /etc/profile
#最后一行加入
export LC_ALL= zh_CN.gb18030
source /etc/sysconfig/i18n
catalina.sh stop
ps aux|grep tomcat
catalina.sh start
yum groupinstall -y "fonts"
vim /etc/sysconfig/i18n
LANG="zh_CN.GB18030"
LC_ALL="zh_CN.GB18030"
vim /etc/locale.conf
LANG="zh_CN.GB18030"
LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"
SUPPORTED="zh_CN.UTF-8:zh_CN:zh:en_US.UTF-8:en_US:en"
SYSFONT="lat0-sun16"
source /etc/sysconfig/i18n
source /etc/locale.conf
catalina.sh stop
ps aux|grep tomcat
catalina.sh start
Centos下安装部署gisserver及centos6-7中文乱码解决
标签:source exp margin tar.gz top title tom iss 脚本
原文地址:http://blog.51cto.com/xiraowangja/2062918