您的位置:首页 > 运维架构 > Nginx

ubuntu下nginx服务器配置技术总结

2014-05-01 19:10 489 查看
ubuntu下nginx服务器配置技术总结一、ubuntu下nginx服务器配置1、nginx的优点服务器压力小,接收并发数高2、环境配置搭建http://wiki.ubuntu.org.cn/Nginx#.E5.AE.89.E8.A3.85nginx3、配置文件模板/etc/nginx/sites-available/default4、配置教程:http://wangyan.org/blog/nginx-alias-php.html二、Centos下配置nginx服务器1、Centos下Nginx服务器配置http://imysql.com/2013/03/01/quick-start-with-drupal-under-centos6.html三、数据库授权1、数据库授权方法 http://www.cnblogs.com/ymy124/archive/2012/05/23/2514196.html /授权phplamp用户拥有phplamp数据库的所有权限。>grant all privileges on phplampDB.* to phplamp@localhost identified by '1234';2、启动phpin脚本解决502错误启动fastcgi php:spawn-fcgi -a 127.0.0.1 -p 9000 -C 10 -u www-data -f /usr/bin/php-cgi3 、php文件vim /etc/php5/fpm/php.iniline :765
sudo vi /etc/nginx/sites-available/default   28
4、安装nginx参考
http://icyleaf.com/2010/05/nginx-with-fastcgi-build-kohana
/usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u www-data -g www-data -f /usr/bin/php5-cgi -P /var/run/fastcgi-php.pid
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: