修改IP:
vim /etc/sysconfig/network-scripts/ifcfg-ens33
TYPE="Ethernet"
PROXY_METHOD="none"
BROWSER_ONLY="no"
BOOTPROTO="none"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="no"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
IPV6_ADDR_GEN_MODE="stable-privacy"
NAME="eth0"
UUID="87165b07-f71f-460a-a2f5-6bb607ed99d9"
DEVICE="eth0"
ONBOOT="yes"
IPADDR="10.0.0.10"
PREFIX="24"
GATEWAY="10.0.0.1"
systemctl restart network
修改web端口:
cd /etc/httpd/conf/
vim httpd.conf
Listen 10.0.0.10:8080
firewall-cmd --permanent --add-port=8080/tcp
systemctl restart httpd