秋枫阁,秋枫阁-科技馆,Blog,博客,个人博客,Maple,Zoe,Maple与Zoe
秋枫阁,秋枫阁-科技馆,Blog,博客,个人博客,Maple,Zoe,Maple与Zoe
秋枫阁,秋枫阁-科技馆,Blog,博客,个人博客,Maple,Zoe,Maple与Zoe
秋枫阁,秋枫阁-科技馆,Blog,博客,个人博客,Maple,Zoe,Maple与Zoe
秋枫阁,秋枫阁-科技馆,Blog,博客,个人博客,Maple,Zoe,Maple与Zoe
秋枫阁,秋枫阁-科技馆,Blog,博客,个人博客,Maple,Zoe,Maple与Zoe
Mac电脑安装PHP+MYSQL+NGINX
- 时间:2019-02-27 17:41:38
- 3014人已阅读
简介Mac 电脑手动搭建 php+mysql+nginx 环境,以及安装其他需要的服务
1. 安装 PHP
参考 Mac电脑安装PHP扩展
2. 安装 MySQL
brew install mysql
启动服务
后台启动:
brew services start mysql
前台启动:
mysql.server start
启动完成后执行 mysql_secure_installation
按提示完成安全安装:
1.是否使用VALIDATE PASSWORD组件:直接回车
2.设置root密码:设置root账号的密码
3.是否删除匿名用户:y
4.是否禁止远程登录:no
5.是否删除测试数据库:y
6.是否现在重载权限表:y
3. 安装NGINX
brew install nginx
启动nginx:
nginx 或 brew services start nginx
重启nginx:
nginx -s reload 或 brew services restart nginx
停止nginx:
nginx -s stop 或 brew services stop nginx
4.安装redis
brew install redis
启动redis:
brew services start redis
重启redis:
brew services restart redis
停止redis:
brew services stop redis
5.安装MongoDB
brew install mongodb
启动mongodb:
brew services start mongodb
重启mongodb:
brew services restart mongodb
停止mongodb:
brew services stop mongodb
6.安装composer
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
7.安装 SVN
brew install svn
8.查看服务状态
brew services list
上一篇:UI设计师面试题
下一篇:Mac电脑安装PHP扩展