时间:2023-06-01 10:45:01 | 来源:网站运营
时间:2023-06-01 10:45:01 来源:网站运营
CentOS8搭建本地Web服务器:CentOS8,利用Apache搭建本地Web服务器。httpdsudo yum install -y httpdservice httpd startsystemctl list-unit-files | grep httpdchkconfig httpd on再确认一下:systemctl list-unit-files | grep httpdIP(可以通过ifconfig查看),若出现以下页面则表示成功。/var/www/html下,可以通过修改/etc/httpd/conf/httpd.conf修改。这里的例子是只修改主页,在/var/www/html创建一个index.html:cd /var/www/htmlsudo vim index.html随便输入一点内容,然后刷新在浏览器即可。关键词:服务,本地