欢迎访问我的独立博客

在Ubuntu中安装PHP,MySQL,Nginx和phpMyAdmin

apt install php

apt-get install php7.0

apt-get -y install php7.0-fpm

 

缺少 mysqli 扩展。请检查 PHP 配置。

apt install php7.0-*

 

 

mysql:

apt-get install mysql-server mysql-client

 

mysql.service: Main process exited, code=exited, status=1/FAILURE

systemctl start mysql.service

可能是端口被占用了

 

 

 

安装nginx

apt-get install libpcre3 libpcre3-dev

apt-get install zlib1g-dev

apt-get install openssl

 

502

[error] 22504#0: *5 connect() failed (111: Connection refused) while connecting to upstream,

upstream: "fastcgi://127.0.0.1:9000"

 

 

vim /etc/php/7.0/fpm/pool.d/www.conf

;listen = /var/run/php5-fpm.sock listen = 127.0.0.1:9000

;listen.allowed_clients = 127.0.0.1

 

pkill php-fpm

/usr/sbin/php-fpm7.0

posted @ 2018-07-19 11:29  github.com/starRTC  阅读(473)  评论(0编辑  收藏  举报