我的MacBook http服务

阅读更多

我的MacBook http服务

(1)nginx

nginx home目录:

/usr/local/Cellar/nginx/1.8.1

 

配置文件路径:

/usr/local/etc/nginx/nginx.conf

 

启动nginx:

 

sudo nginx -c /usr/local/etc/nginx/nginx.conf

(2)Apache

配置文件:/etc/apache2/httpd.conf

www目录:/Library/WebServer/Documents/static

重启服务:sudo apachectl restart

 

(3)tomcat

tomcat 安装目录:

/Users/whuanghkl/software/apache-tomcat-8.0.32

端口号:8082

(4)python web server

 python3: python -m http.server 8088

python2:python -m SimpleHTTPServer 8088

参考:http://angusjune.github.io/blog/2014/08/16/python-3-dot-x-no-module-named-simplehttpserver/

你可能感兴趣的:(http,server,web,server)