标签:style c class blog code java
mysql占用内存太大,所以选用sqlite
安装:
//更新 sudo apt-get update sudo apt-get upgrade //安装nginx sudo apt-get install nginx //启动nginx sudo /etc/init.d/nginx start //安装php-fpm sudo apt-get install php5-fpm //安装sqlite sudo apt-get install php5-sqlite
Nginx配置:
sudo nano /etc/nginx/sites-available/default
修改端口:
listen 80; ## listen for
ipv4.
修改index:
index index.php
index.html index.htm
修改root:
root
/var/www;
注意:去掉PHP前注释
location ~ \.php$ { fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; include fastcgi_params; }
重启Nginx
sudo /etc/init.d/nginx reload
树莓派Nginx+php+sqlite,布布扣,bubuko.com
标签:style c class blog code java
原文地址:http://www.cnblogs.com/wjne/p/3753788.html