摘要: 安装php,支持mysql和fpm$ apt-get install mysql-server$ apt-get install php5-cli php5-cgi php5-common php5-curl php5-dev php5-gd php5-mcrypt php5-mhash$ apt-get install php5-mysql libmysqld-dev$ apt-get install php5-fpmphp使用默认配置即可修改nginx配置,/opt/nginx/nginx.conf配置中增加一个虚拟主机 server { listen 80; server_name bl 阅读全文
posted @ 2013-03-23 20:10 scige 阅读(1536) 评论(0) 推荐(0) 编辑
摘要: 直接拷贝一份虚拟主机的配置即可 server { listen 80; server_name www.jilinmei.com; root /home/xxx/site_1; passenger_enabled on; } server { listen 80; server_name blog.jilinmei.com; root /home/xxx/site_2; passenger_enabled on; }重启nginx后生效$ sudo service nginx restart 阅读全文
posted @ 2013-03-23 18:17 scige 阅读(875) 评论(0) 推荐(0) 编辑