上线代码有两种方式,第一种方式是直接将程序目录放在webapps目录下面,这种方式大家已经明白了,就不多说了。第二种方式是使用开发工具将程序打包成war包,然后上传到webapps目录下面。下面让我们见识一下这种方式。

系统环境

[root@tomcat ~]# getenforce 
Disabled
[root@tomcat ~]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
   Active: inactive (dead)

Jul 19 08:39:10 centos7 systemd[1]: Starting firewalld - dynamic firewall daemon...
Jul 19 08:39:11 centos7 systemd[1]: Started firewalld - dynamic firewall daemon.
Jul 19 11:20:50 git systemd[1]: Stopping firewalld - dynamic firewall daemon...
Jul 19 11:20:51 git systemd[1]: Stopped firewalld - dynamic firewall daemon.
[root@tomcat ~]# ip a|grep eth1
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    inet 172.16.1.70/24 brd 172.16.1.255 scope global eth1
[root@tomcat ~]#
View Code

相关文章:

  • 2021-12-02
  • 2021-07-26
  • 2021-10-04
  • 2021-02-10
  • 2022-12-23
  • 2021-11-29
  • 2021-11-29
  • 2021-11-21
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2021-11-21
  • 2022-12-23
  • 2021-10-14
  • 2021-07-28
相关资源
相似解决方案