1.设置服务开机启动
systemctl enable httpd.service
2.端口配置
①UltraEdit定位到/etc/httpd/conf/httpd.conf
②修改“Listen 80”为“Listen 8080”
③重启服务:systemctl restart httpd
④浏览器测试连接:http://192.168.31.120:8080/
3.添加网页
①xftp定位到/var/www/html文件夹
②将test1.html拖到里面
③浏览器测试连接:http://192.168.31.120:8080/test1.html
4.主页配置
①UltraEdit定位到/etc/httpd/conf/httpd.conf
②DirectoryIndex index.html 修改为DirectoryIndex test1.html index.html
③重启服务:systemctl restart httpd
④测试浏览器连接:http://192.168.31.120:8080/ 即可访问到test1.html