http://mp.weixin.qq.com sudo apt-get update
1. Install nginxsudo apt-get install nginx
http://x.x.x.x 2. Install php7.0sudo apt-get install php7.0 php7.0-cli php7.0-cgi php7.0-mysql
sudo apt-get install php7.0-fpm
sudo vim /var/www/html/index.php
3. edit the defaultcd /etc/nginx/sites-enabled
sudo vim default
- index.php
-
- location ~ \.php$ {
- include snippets/fastcgi-php.conf;
- fastcgi_pass unix:/run/php/php7.0-fpm.sock;
- }
4. Install php patchsudo apt-get install php-gd
sudo apt-get install php-curl
sudo apt-get install mbstring
5. Install mysqlsudo apt-get install mysql-server-5.7 mysql-client-5.7
-在这个安装过程中会提示你输入管理密码
-不要使用小键盘
-输入密码不会有提示