반응형
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 |
Tags
- Eclipse
- jenkins
- post
- config
- popup
- mybatis
- spring
- submit
- console
- javascript
- Java
- NextJS
- rocky9
- Next.js
- docker
- node.js
- SpringBoot
- jquery
- MSsql
- mysql
- nodejs
- ajax
- git
- Maven
- PM2
- MariaDB
- spring3
- yona
- security
- centos7
Archives
- Today
- Total
ふたりで
centos7 + tomcat8 다운로드 설정. 본문
728x90
반응형
SMALL
1. JDK설치
#yum install java-1.8.0-openjdk-devel.x86_64
2. tomcat8.x 다운로드 및 압축 해제 및 이동
#wget http://apache.tt.co.kr/tomcat/tomcat-8/v8.5.54/bin/apache-tomcat-8.5.54.tar.gz
#tar -xzf apache-tomcat-8.5.54.tar.gz
#mv ./apache-tomcat-8.5.54 /usr/local/tomcat8
3. tomcat 서비스 등록.
[root@localhost dbkang]# cat /etc/systemd/system/tomcat8.service
# Systemd unit file for tomcat
[Unit]
Description=tomcat8
After=syslog.target network.target
[Service]
Type=forking
Environment="JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.242.b08-0.el7_7.x86_64"
Environment="CATALINA_HOME=/usr/local/tomcat8"
Environment="CATALINA_BASE=/usr/local/tomcat8"
Environment="CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC"
Environment="JAVA_OPTS=-Djava.security.egd=file:///dev/urandom"
ExecStart=/usr/local/tomcat8/bin/startup.sh
ExecStop=/usr/local/tomcat8/bin/shutdown.sh
User=root
Group=root
UMask=0007
RestartSec=10
Restart=always
[Install]
WantedBy=multi-user.target
4. tomcat 서비스 활성 및 실행.
1. 서비스활성
#systemctl enable tomcat8.service
2. 적용
#systemctl daemon-reload
3. tomcat.service 실행
#systemctl start tomcat8.service
4. 상태 확인?
#systemctl status tomcat8.service
end
728x90
반응형
LIST
'centos7 & rocky9' 카테고리의 다른 글
centos7 + jenkins 설치 설정. (0) | 2020.05.13 |
---|---|
centos7 + rocky-linux9.3 port open & searche(포트 확인 및 오픈) (0) | 2020.05.13 |
tail -f 활용법 (0) | 2020.04.29 |
centos7 firewall(iptables?) 포트오픈 (0) | 2020.01.07 |
linux+jenkins설치 및 삭제(rpm) (0) | 2019.08.01 |
Comments