[全屏查看所有代碼]1. [代碼][PHP]代碼
[1] [全屏預(yù)覽]1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#安裝ppa
sudo apt-get install python-software-properties software-properties-common
sudo add-apt-repository ppa:ondrej/php-7.0
sudo apt-get update
#刪除php5
sudo apt-get purge php5-fpm php5-mysql php5-common
sudo apt-get --purge autoremove
#安裝php7
sudo apt-get install php7.0-fpm php7.0-mysql php7.0-common php7.0-curl
#把nginx *.conf 里的fastcgi_pass配置改成:
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
#重啟nginx
sudo service nginx reload
#完成.
本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請
點擊舉報。