标签:catalina vim x64 txt direct code port lib local
yum -y install supervisor
systemctl enable supervisord
tar -zxvf jdk-8u60-linux-x64.tar.gz -C /usr/local/ chown -R root.root /usr/local/jdk1.8.0_60
1、echo 2、cat
echo "111" >> test.txt
cat >>test.txt<<EOF 333 444 EOF
cat>>/etc/profile<<\EOF ###jdk环境### export JAVA_HOME=/usr/local/jdk1.8.0_60 export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH export CLASSPATH=.$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$JAVA_HOME/lib/tools.jar EOF
source /etc/profile
java -version
1 tar -zxvf apache-tomcat-8.5.45.tar.gz 2 mkdir -p /opt/app01 3 cp -a apache-tomcat-8.5.45/* /opt/app01/ 4 cd /opt/ 5 cp app01/ app02
vim /etc/supervisord.d/app01.ini
[program:app01] command=/opt/app01/bin/catalina.sh run environment=JAVA_HOME="/usr/local/jdk1.8.0_60",JAVA_BIN="/usr/local/jdk1.8.0_60/bin" directory=/opt/app01/bin/ numprocs=1 user = root autostart = true autorestart=true startsecs = 5
vim /etc/supervisord.d/app02.ini
[program:app02] command=/opt/app02/bin/catalina.sh run environment=JAVA_HOME="/usr/local/jdk1.8.0_60",JAVA_BIN="/usr/local/jdk1.8.0_60/bin" directory=/opt/app02/bin/ numprocs=1 user = root autostart = true autorestart=true startsecs = 5
systemctl restart supervisord
标签:catalina vim x64 txt direct code port lib local
原文地址:https://www.cnblogs.com/wanglinyan/p/12787711.html