#Include etc/extra/httpd-vhosts.conf
vim /etc/hosts 添加 172.17.200.140 www.gosc.xin
DocumentRoot "/opt/lampp/htdocs/gosc/public" //项目主入口文件路径 ServerName www.gosc.xin //域名(虚拟主机的访问地址) //访问权限 Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all
chmod -R 755 gosc //递归式修改项目gosc的权限
vim /root/.bashrc alias sta='/usr/local/apache2/bin/apachectl restart' alias sto='/usr/local/apache2/bin/apachectl stop' source /root/.bashrc