[root@localhost /]# mkdir /123
[root@localhost /]# cd /123
[root@localhost html]# cd /123
[root@localhost 123]# echo hello world > index.html
[root@localhost conf.d]# cat zuoye.conf
<virtualhost 192.168.147.37>
servername 192.168.147.37
documentroot /123
</virtualhost>
<directory>
allowoverride none
require all granted
</directory>
[root@localhost conf.d]# nmcli connection modify ens160 +ipv4.addresses 192.168.147.37/24
[root@localhost conf.d]# nmcli connection up ens160
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/8)
[root@localhost conf.d]# curl 192.168.147.37
heat world
搭建一个web服务器,访问该服务器时显示“hello world”欢迎界面
最新推荐文章于 2024-04-13 16:50:13 发布