gsessionインストール
sudo su –
yum update
yum -y install git mysql wget
yum -y install jdk-8u191-linux-x64.rpm
java -version
cd /opt
tar -zxvf apache-tomcat-8.5.34.tar.gz
mv apache-tomcat-8.5.34/ tomcat
export JAVA_HOME=/usr/java/jdk1.8.0_191-amd64
export CATALINA_HOME=/opt/tomcat
/opt/tomcat/bin/startup.sh
http://10.1.1.163:8080/
/opt/tomcat/bin/shutdown.sh
cp gsession.war /opt/tomcat/webapps/
/opt/tomcat/bin/startup.sh
http://10.1.1.163:8080/gsession/
admin/admin
tomcat設定
vi /etc/systemd/system/tomcat.service
[Unit]
Description=Apache Tomcat 8
After=syslog.target network.target
RequiresMountsFor=/mnt/nfsdisk/gsessionsrv
[Service]
User=root
Group=root
Type=oneshot
PIDFile=/opt/tomcat/tomcat.pid
RemainAfterExit=yes
ExecStart=/opt/tomcat/bin/startup.sh
ExecStop=/opt/tomcat/bin/shutdown.sh
ExecReStart=/opt/tomcat/bin/shutdown.sh;/opt/tomcat/bin/startup.sh
[Install]
WantedBy=multi-user.target
chmod 755 /etc/systemd/system/tomcat.service
vi /etc/sysconfig/tomcat
JAVA_HOME=”/usr/java/jdk1.8.0_191-amd64″
timezone設定
timedatectl status
timedatectl set-timezone Asia/Tokyo
timedatectl status
tomcat起動
systemctl stop tomcat
systemctl -l status tomcat
systemctl start tomcat
systemctl -l status tomcat
systemctl enable tomcat
systemctl -l status tomcat