我正在 mac OS-X (10.8.3) 上设置开发环境。
我的apachectl似乎是指/opt/usr/sbin/apachectl:
$ sudo apachectl start
$ ps aux | grep httpd | grep -v grep
_www 898 0.0 0.0 2436168 704 ?? S 11:46AM 0:00.00 /usr/sbin/httpd -D FOREGROUND
root 897 0.0 0.1 2436168 4308 ?? Ss 11:46AM 0:00.18 /usr/sbin/httpd -D FOREGROUND
Run Code Online (Sandbox Code Playgroud)
但是,apachectlin/opt/local/apache2/bin/apachectl似乎正在为我的本地机器驱动(正确配置的)网络服务器。
$ sudo /opt/local/apache2/bin/apachectl start
$ ps aux | grep httpd | grep -v grep
_www 916 0.0 0.0 2455992 688 ?? S 11:47AM 0:00.00 /opt/local/apache2/bin/httpd …Run Code Online (Sandbox Code Playgroud)