查看端口占用情况:netstat -tunpl
nginx:/etc/init.d/nginx start/stop/restart/reload
apache:/etc/init.d/httpd start/stop/restart
mysql:/etc/init.d/mysqld start/stop/restart 或者 service mysqld start/stop
php-fpm:/etc/init.d/php-fpm start/stop/restart
ftp: /etc/init.d/vsftpd start/stop/restart 或者 service vsftpd start/stop
nginx的wordpress rewrite重写配置
if (!-e $request_filename){
rewrite (.*) /index.php;
}
查找安装服务所在的目录:ps -ef|grep nginx | mysql