tomcat apache jdk

上传apache jdk 

[Unit]
Description=tomcat
After=network.target

[Service]
Type=forking
ExecStart=/usr/local/tomcat/bin/startup.sh
ExecReload=
ExecStop=/usr/local/tomcat/bin/shutdown.sh
PrivateTmp=true

[Install]
WantedBy=multi-user.target
 

   50  [root] 2023-07-26 16:51:55 /dev/pts/1 ll
   51  [root] 2023-07-26 16:53:28 /dev/pts/1 yum localinstall jdk-8u261-linux-x64.rpm -y
   52  [root] 2023-07-26 16:53:41 /dev/pts/1 java 
   53  [root] 2023-07-26 16:53:47 /dev/pts/1 java  --version
   54  [root] 2023-07-26 16:53:52 /dev/pts/1 java  version
   55  [root] 2023-07-26 16:53:56 /dev/pts/1 java  -version
   56  [root] 2023-07-26 16:54:06 /dev/pts/1 tar xf apache-tomcat-8.5.70.tar.gz -C /usr/local/
   57  [root] 2023-07-26 16:54:10 /dev/pts/1 cd /usr/local/
   58  [root] 2023-07-26 16:54:10 /dev/pts/1 ll
   59  [root] 2023-07-26 16:54:12 /dev/pts/1 cd apache-tomcat-8.5.70/
   60  [root] 2023-07-26 16:54:13 /dev/pts/1 ll
   61  [root] 2023-07-26 16:54:22 /dev/pts/1 cd bin/
   62  [root] 2023-07-26 16:54:23 /dev/pts/1 ll
   63  [root] 2023-07-26 16:54:27 /dev/pts/1 ./startup.sh 
   64  [root] 2023-07-26 16:54:40 /dev/pts/1 netstat -luntp
   65  [root] 2023-07-26 16:54:58 /dev/pts/1 systemctl stutus tomcat
   66  [root] 2023-07-26 16:55:04 /dev/pts/1 systemctl status tomcat
   67  [root] 2023-07-26 16:57:45 /dev/pts/1 vim /usr/lib/systemd/tomcat.service
   68  [root] 2023-07-26 16:58:13 /dev/pts/1 systemctl daemon-reload 
   69  [root] 2023-07-26 16:58:22 /dev/pts/1 systemctl restart tomcat
   70  [root] 2023-07-26 16:58:33 /dev/pts/1 systemctl status tomcat
   71  [root] 2023-07-26 17:02:57 /dev/pts/1 systemctl daemon-reload 
   72  [root] 2023-07-26 17:03:08 /dev/pts/1 systemctl restart tomcat
   73  [root] 2023-07-26 17:04:14 /dev/pts/1 mv /usr/lib/systemd/tomcat.service  /usr/lib/systemd/system/
   74  [root] 2023-07-26 17:04:29 /dev/pts/1 chmod 600 /usr/lib/systemd/system/tomcat.service
   75  [root] 2023-07-26 17:04:40 /dev/pts/1 systemctl daemon-reload 
   76  [root] 2023-07-26 17:04:55 /dev/pts/1 systemctl restart tomcat
   77  [root] 2023-07-26 17:05:06 /dev/pts/1 systemctl status tomcat
   78  [root] 2023-07-26 17:05:19 /dev/pts/1 systemctl start  tomcat
   79  [root] 2023-07-26 17:05:46 /dev/pts/1 ll /usr/local/bin/
   80  [root] 2023-07-26 17:06:12 /dev/pts/1 vim /usr/lib/systemd/system/tomcat.service 
   81  [root] 2023-07-26 17:08:33 /dev/pts/1 systemctl daemon-reload 
   82  [root] 2023-07-26 17:08:39 /dev/pts/1 systemctl start tomcat
   83  [root] 2023-07-26 17:08:46 /dev/pts/1 systemctl status tomcat
   84  [root] 2023-07-26 17:09:05 /dev/pts/1 cat /var/log/messages
   85  [root] 2023-07-26 17:13:50 /dev/pts/1 vim /usr/lib/systemd/system/tomcat.service 
   86  [root] 2023-07-26 17:14:38 /dev/pts/1 systemctl daemon-reload 
   87  [root] 2023-07-26 17:14:43 /dev/pts/1 systemctl start tomcat
   88  [root] 2023-07-26 17:14:51 /dev/pts/1 systemctl status tomcat
   89  [root] 2023-07-26 17:16:07 /dev/pts/1 cat /var/log/messages
   90  [root] 2023-07-26 17:17:50 /dev/pts/1 systemctl status tomcat
   91  [root] 2023-07-26 17:18:37 /dev/pts/1 $ systemctl enable tomcat
   92  [root] 2023-07-26 17:18:43 /dev/pts/1 systemctl enable tomcat

   93  [root] 2023-07-26 17:18:51 /dev/pts/1 systemctl restart tomcat
   94  [root] 2023-07-26 17:18:56 /dev/pts/1 systemctl status tomcat
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值