首先系统要Ubuntu16.04
locale-gen zh_CN.UTF-8
vi /etc/environment
LANG="zh_CN.UTF-8"
LANGUAGE="zh_CN:zh:en_US:en"
apt update apt upgrade apt remove apache2 apt install subversion nginx-full apt install php7.0-fpm php7.0-mysql php7.0-mbstring php7.0-curl php7.0-ldap
service php7.0-fpm restart
vi /etc/nginx/sites-enabled/firadio
server { listen 8686; listen [::]:8686; root /root/code/php/firadio-yun-php/appbase/api/wwwroot; index index.html index.htm index.php; location / { if ( !-e $request_filename ) { rewrite ^(.*)$ /index.php/$1 last; break; } } location ~/index.php { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php7.0-fpm.sock; } }
chown -R www-data. /root/code/php/firadio-yun-php