1. 当第一次登录Linux服务器 :
The default account is root ,the pwd : 创建实例时设置的pwd
2. Setup FTP:
查看防火墙运行状态
[root@iZbp120yio7doey05rwlhbZ /]# service iptables status
iptables: Firewall is not running.
http://www.cnblogs.com/sunhaoyu/p/7169156.html
warning: /var/tmp/rpm-tmp.X3VUU1: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
3. 安装PhpStudy
4. 在/phpstudy/mysql/bin 目录下执行mysql 命令:
-bash: mysql: command not found


来源:http://blog.csdn.net/gjanuary/article/details/68488972
在切换到/phpstudy/mysql/bin目录后:
mysql -uroot -p // 密码默认是root
use mysql

下边这个update
慎用,我在自己的服务器上用了后,导致MySQL进不去了,
update user set Host = '%' where User = 'root';
flush privileges;
来源:http://www.52itstyle.com/thread-25183-1-1.html

insert into user (Host,User,Password) values ('%','xxx',password('xxx'));
5.遇到的问题: 在安装好phpstudy后,无法通过ip访问服务器,但是可以ping通:
解决办法:
a. 在阿里云里添加80 port
b. 关闭防火墙 service iptables stop
关闭防火墙的办法:
https://zhidao.baidu.com/question/566090580746594164.html

网友评论