virtual box下安装了一个最小化的centos 7
yum安装的nginx
192.168.31.146
centos桥接ip192.168.31.158
192.168.31.158 cent.com
nginx已经启动,显示runningnginx配置文件default.conf如下:
nginx -t显示正常/usr/share/nginx/html下默认有个html文件ping cent.com可以ping通,ip是158http://cent.com无法访问firewalld,我说iptables怎么没开。。firewall-cmd --permanent --add-service=httpfirewall-cmd --permanent --zone=trusted --add-port=80/tcp
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
走同样的路,发现不同的人生