apache 命令:
開啟apache: sudo apachectl start
關(guān)閉apache:sudo apachectl stop
重啟apache:sudo apachectl restart
查看版本信息:httpd -v
檢測apache語法錯誤:apachectl configtest
apache sierra上配置文件路徑: /etc/apache2/httpd.conf
權(quán)限相關(guān):
查看文件的權(quán)限: ls -l file-name
修改文件的權(quán)限: sudo chmod *** file-name