首先系统要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

 

相关文章:

  • 2022-03-09
  • 2022-01-04
  • 2022-12-23
  • 2022-12-23
  • 2021-06-27
  • 2022-12-23
  • 2021-10-31
猜你喜欢
  • 2022-01-21
  • 2021-07-09
  • 2021-09-04
  • 2021-09-06
  • 2021-11-05
  • 2021-08-11
  • 2021-08-26
相关资源
相似解决方案