1、下载一键安装包:
http://pan.baidu.com/s/1o6lWyeu
2、unzip -x sh.zip
chmod -R 755 sh
./install.sh
等待半小时左右
3、查看nginx是否启动
ps -ef|grep nginx
查看mysql是否启动
ps -ef|grep mysql
4、配置数据库
ifcofig 查看公网ip
cat account.log
sh目录中查看安装日志
mysql -P3306 -uroot -ppassword -hlocalhost
show databases;
use mysql;
show
tables;
desc user;
select host,user,password
form user;
update user set host=‘%‘ where host=‘localhost‘ 修改,公网ip可以访问
flush privileges 刷新后才能生效!