1.Mac上Apache和Tomcat服务器启动命令
Mac上Apacha服务器启动命令:
sudo apachectl start/restart/stop
或者sudo httpd -k stop/start
Mac上Tomcat服务器启动命令:
startup.sh/shutdown.sh
2.Mac上Monogdb启动命令
Mac上Mongodb数据库启动命令:
sudo mongod --config /usr/local/etc/mongod.conf
3.Mac查看进程命令 ps –ef | grep tomcat;
4.Mac 查看端口命令 sudo lsof –I :8080;
5.微信公众号开发时调试所需:
找到文件 /private/etc/pf.conf做一下配置
rdr-anchor "com.apple/*"
rdr on lo0 inet proto tcp from any to 127.0.0.1 port 80 -> 127.0.0.1 port 8089
dummynet-anchor "com.apple/*"
anchor "com.apple/*"
然后启动端口映射
sudo pfctl -d ,sudo pfctl -f /private/etc/pf.conf,sudo pfctl -e
然后修改host