日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

linux 下运行 tomcat

發布時間:2023/12/10 linux 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux 下运行 tomcat 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

一開始找不到表名,原來mysql 表名區分大小寫。

修改參數?lower_case_table_names=1

?

成功運行后不能通過瀏覽器訪問!

開啟8080端口

一、關閉防火墻

firewall-cmd --state ? ? 查看狀態

[root@VM_7_88_centos /]# firewall-cmd --state running [root@VM_7_88_centos /]# systemctl stop firewalld.service [root@VM_7_88_centos /]# firewall-cmd --state not running

systemctl disable firewalld.service 禁用

systemctl -h 查看使用幫助

二、開8080端口

1. 安裝iptables-services

yum -y install iptables-services

2. 查看狀態

service iptables status

[root@VM_7_88_centos /]# service iptables status Redirecting to /bin/systemctl status iptables.service iptables.service - IPv4 firewall with iptablesLoaded: loaded (/usr/lib/systemd/system/iptables.service; disabled)Active: inactive (dead)

3. 打開

# sample configuration for iptables service # you can edit this manually or use system-config-firewall # please do not ask us to add additional ports/services to this default configuration *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT -A INPUT -j REJECT --reject-with icmp-host-prohibited -A FORWARD -j REJECT --reject-with icmp-host-prohibited COMMIT ~ ~ ~ ~ ~

在22下增加8080

-A INPUT -p tcp -m state --state NEW -m tcp --dport 8080 -j ACCEPT

重啟iptables.service

查看列表?iptables -L -n?

?

轉載于:https://www.cnblogs.com/zno2/p/5293030.html

總結

以上是生活随笔為你收集整理的linux 下运行 tomcat的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。