博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
linux 下运行 tomcat
阅读量:4308 次
发布时间:2019-06-06

本文共 1396 字,大约阅读时间需要 4 分钟。

一开始找不到表名,原来mysql 表名区分大小写。

修改参数 lower_case_table_names=1

 

成功运行后不能通过浏览器访问!

开启8080端口

一、关闭防火墙

firewall-cmd --state     查看状态

[root@VM_7_88_centos /]# firewall-cmd --staterunning[root@VM_7_88_centos /]# systemctl stop firewalld.service [root@VM_7_88_centos /]# firewall-cmd --statenot 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 statusRedirecting to /bin/systemctl status  iptables.serviceiptables.service - IPv4 firewall with iptables   Loaded: 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-prohibitedCOMMIT~~~~~

在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

你可能感兴趣的文章
Java中equals和==的区别
查看>>
JVM内存管理及GC机制
查看>>
Java:按值传递还是按引用传递详细解说
查看>>
Java中Synchronized的用法
查看>>
阻塞队列
查看>>
linux的基础知识
查看>>
接口技术原理
查看>>
五大串口的基本原理
查看>>
PCB设计技巧与注意事项
查看>>
linux进程之间通讯常用信号
查看>>
main函数带参数
查看>>
PCB布线技巧
查看>>
关于PCB设计中过孔能否打在焊盘上的两种观点
查看>>
PCB反推理念
查看>>
京东技术架构(一)构建亿级前端读服务
查看>>
php 解决json_encode中文UNICODE转码问题
查看>>
LNMP 安装 thinkcmf提示404not found
查看>>
PHP empty、isset、innull的区别
查看>>
apache+nginx 实现动静分离
查看>>
通过Navicat远程连接MySQL配置
查看>>