Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- https
- docker
- iptables
- centos7
- phpmyadmin
- ubuntu
- MariaDB
- CentOS
- haproxy.cfg
- letsencrypt
- HLS
- mount
- db
- Tomcat
- firewall
- docker-compose
- Cent
- youtube-dl
- YouTube
- 도커
- vsftpd
- yum
- nginx
- 8443
- 방화벽
- SSL
- Maria
- haproxy
- 인증서
- mysql
Archives
- Today
- Total
개발자의뇌
CentOS7 tomcat8 설치하기 본문
yum install -y java-1.8.0-openjdk-devel.x86_64 tomcat-native
mkdir /svc
cd /svc
wget http://apache.tt.co.kr/tomcat/tomcat-8/v8.5.47/bin/apache-tomcat-8.5.47.tar.gz
tar -xzf apache-tomcat-8.5.47.tar.gz
mv apache-tomcat-8.5.47 tomcat8
vi /usr/lib/systemd/system/tomcat.service
# Systemd unit file for tomcat
[Unit]
Description=Apache Tomcat Web Application Container
After=syslog.target network.target
[Service]
Type=forking
Environment=JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.252.b09-2.el7_8.x86_64
Environment=CATALINA_PID=/run/tomcat.pid
Environment=CATALINA_HOME=/svc/tomcat8
Environment=CATALINE_BASE=/svc/tomcat8
Environment='CATALINE_OPTS='
Environment='JAVA_OPTS=-Djava.awt.haedless=true -Djava.security.egd=file:/dev/./urandom'
ExecStart=/svc/tomcat8/bin/startup.sh
ExecStop=/bin/kill -15 $MAINPID
User=root
Group=root
[Install]
WantedBy=multi-user.target
vi /svc/tomcat8/bin/setenv.sh
JAVA_OPTS=$JAVA_OPTS" -server -Dfile.encoding=UTF-8 -server -Xms1024m -Xmx1024m -XX:MaxNewSize=384m -XX:MaxPermSize=128m -XX:ParallelGCThreads=4 -XX:-UseConcMarkSweepGC -XX:-HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/svc/tomcat8/logs/oom.hprof -XX:-PrintGC -XX:-PrintGCDetails -XX:-PrintGCTimeStamps -XX:-TraceClassUnloading -XX:-TraceClassLoading"
chmod 644 /usr/lib/systemd/system/tomcat.service
systemctl daemon-reload
systemctl start tomcat
systemctl status tomcat
systemctl enable tomcat
'개발 > Linux' 카테고리의 다른 글
서버 자원 모니터링 쉽게 하는 방법 2가지 (0) | 2019.12.04 |
---|---|
mysql/mariadb 유용한 명령어 (0) | 2019.12.02 |
CentOS7 haproxy 원하는(최신) 버전 설치 (0) | 2019.11.01 |
lvm2 mount error 해결 (0) | 2019.07.10 |
CentOS7 타임존 변경 (0) | 2019.06.19 |
Comments