摘要: 在 MAC 上用BREW 安装好NGINX 后,修改网站文件路径后出错。默认 root html; 的真实路径为/usr/local/Cellar/nginx/1.2.3/html 指向到:/usr/local/var/www文件夹所有权是 root wheel修改 nginx.conf 的 user root wheel;修改自定义网站代码所在目录的所有权为 chown -R root:wheel www;然后就搞定了。 阅读全文
posted @ 2014-03-25 17:48 EdwardSong 阅读(6734) 评论(0) 推荐(1)
摘要: MAC下安装与配置MySQL一 下载MySQL 访问MySQL的官网http://www.mysql.com/downloads/然后在页面中会看到“MySQL Community Server”下方有一个“download”点击。进入MySQL的下载界面(http://www.mysql.com/downloads/mysql/),如果你是用的Mac OS来访问的话那么就会默认为你选好了Mac OS X 平台,而下面罗列的都是在Mac OS上能用的MySQL的版本,如果是用的其他平台,在“Select Platform”选项的下拉列表中选一下就好了。 在Mac OS上的MySQL的版本很多, 阅读全文
posted @ 2014-03-25 16:19 EdwardSong 阅读(102) 评论(0) 推荐(0)
摘要: Install with brewUsebrewto install thenginxwith command:1$brew install nginxAfter install run:1$sudo nginxTestingTest it by going to URL:http://localhost:8080ConfigurationThe default place ofnginx.confon Mac after installing withbrewis:/usr/local/etc/nginx/nginx.confChanging the default portThe ngin 阅读全文
posted @ 2014-03-25 16:12 EdwardSong 阅读(584) 评论(0) 推荐(0)