安装
macOS:
brew install apache2
Ubuntu:
sudo apt install apache2
使用
配置文件路径:
- macOS:
/opt/homebrew/etc/httpd/httpd.conf
- Ubuntu:
/etc/apache2/apache2.conf
DocumentRoot:
- macOS:
/opt/homebrew/var/www
- Ubuntu:
/var/www
macOS:
brew services start httpd
Ubuntu:
sudo systemctl start apache2
参见:Apache HTTP Server Documentation
标签:httpd,macOS,HTTP,apache2,Ubuntu,Apache,Server From: https://www.cnblogs.com/Undefined443/p/18285565