nginx

启动redis:redis-server /usr/local/etc/redis.conf

nginx的配置文件所在的目录:/usr/local/etc/nginx/servers/

启动mysql:

首先sudo -s,转换到超级管理员的权限下,然后执行:mysql.server start。

启动redis: 使用如下命令:

/usr/local/bin/redis-server  /usr/local/etc/redis.conf

启动nginx:

sudo -s

cd /usr/local/nginx

./nginx

ps -ef | grep nginx

 

启动php:

 

1、brew search nginx

2、brew install nginx

启动nginx ,sudo nginx ;访问localhost:8080 发现已出现nginx的欢迎页面了。

常用的指令有: 
nginx -V 查看版本,以及配置文件地址
nginx -v 查看版本
nginx -c filename 指定配置文件
nginx -h 帮助

#重新加载配置|重启|停止|退出 nginx

nginx -s reload|reopen|stop|quit

#打开 nginx

sudo nginx

随便总结了一下,还没来得及整理。

 

原文地址:https://www.cnblogs.com/xiaohaillong/p/5802105.html