二、阿里云Linux 服务器 | 从零开始

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

http://lamp.phpstudy.net/

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

image.png
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容