zoukankan      html  css  js  c++  java
  • 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 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-prohibited
    COMMIT
    ~
    ~
    ~
    ~
    ~

    在22下增加8080

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

    重启iptables.service

    查看列表 iptables -L -n 

  • 相关阅读:
    Go的Web之旅【部署】
    module declares its path as: github.com/xxx/yyy【Go报错】
    android studio快捷键集合
    Web App 概述
    WIN10 kafka搭建完后命令测试步骤自用
    Echarts tab 切换解决图不能显示的问题
    如何为不定高度(height:auto)的元素添加CSS3 transition-property:height 动画
    手持设备开发项目实例
    SQL Server 查找表问题
    Tomcat 10 升级注意事项
  • 原文地址:https://www.cnblogs.com/zno2/p/5293030.html
Copyright © 2011-2022 走看看