1 安装httpd服务
yum -y install httpd
2 启用httpd服务
service httpd start
chkconfig httpd on
3 配置http服务
vim /etc/httpd/conf/httpd.conr
AddHandler cgi-script .cgi .pl .py
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
<Directory "/var/www/cgi-bin">
AllowOverride None
Options +ExecCGI
Order allow,deny
# Allow open access:
Allow from all
</Directory>
ServerName 192.168.192.128:8080
Listen 8080
4 仅主机模式下;win10 虚拟机打不开linux的网页
试试桥接模式
还是打不开,只能通过linux打开本地网页,心累!