Last active
February 22, 2018 08:04
-
-
Save ishtaka/38701a612c40f5da02b1 to your computer and use it in GitHub Desktop.
[Tomcat]Tomcat導入
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # download http://tomcat.apache.org/ | |
| cd /tmp | |
| wget http://ftp.tsukuba.wide.ad.jp/software/apache/tomcat/tomcat-8/v8.0.3/bin/apache-tomcat-8.0.3.tar.gz | |
| # make group and user for tomcat | |
| groupadd -g 1001 tomcat | |
| useradd -u 1001 -g tomcat -s /bin/bash tomcat | |
| # install tomcat | |
| su - tomcat | |
| tar zxvf ./apache-tomcat-8.0.3.tar.gz | |
| exit | |
| mv apache-tomcat-8.0.3 /usr/local/ | |
| # make symbolic link for tomcat | |
| cd /usr/local/ | |
| ln -s apache-tomcat-8.0.3 tomcat | |
| # make symbolic link for logs | |
| cd /usr/local/tomcat/ | |
| mv logs /var/log/tomcat8 | |
| ln -s /var/log/tomcat8 logs | |
| # accept 8080 port | |
| vi /etc/sysconfig/iptables | |
| #-A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT | |
| service iptables restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment