apache 命令:
开启apache: sudo apachectl start
关闭apache:sudo apachectl stop
重启apache:sudo apachectl restart
查看版本信息:httpd -v
检测apache语法错误:apachectl configtest
apache sierra上配置文件路径: /etc/apache2/httpd.conf
权限相关:
查看文件的权限: ls -l file-name
修改文件的权限: sudo chmod *** file-name
网友评论