一開始找不到表名,原來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?
?