Mac如何下重启apache和mysql

mac系统下apache 和 mysql 命令:

启动apache
sudo /usr/sbin/apachectl start
重启apache
sudo /usr/sbin/apachectl restart
停止apache
sudo /usr/sbin/apachectl stop

启动mysql
sudo /Library/StartupItems/MySQLCOM/MySQLCOM start
重启mysql
sudo /Library/StartupItems/MySQLCOM/MySQLCOM restart
停止mysql
sudo /Library/StartupItems/MySQLCOM/MySQLCOM stop

你可能感兴趣的:(apache)