序言:总结一下对阿里云服务器的配置以及Linux命令的简单使用
购买
首先,在阿里云官网购买云服务器ESC (https://promotion.aliyun.com/ntms/campus2017.html?spm=5176.8142029.631162.75.68606d3e9rbcEa) 。这个网址是学生优惠,非常划算!
配置密码
配置连接(登录)服务器密码、设置远程连接密码
连接
购买好云服务器,设置好密码之后,再远程连接云服务器 ( 我服务器镜像是Linux Center OS 7.3 64位 ),点击远程连接,就跳转到了一个命令行窗口.
连接…
- 也可以通过SecureCRT客户端连接,或者本机终端连接
推荐一个好用的插件:fish
优点:让你的命令行具有提示功能,还能记录你输入过得命令。缺点就是有些命令识别不了,需要退出fish模式下再执行?
阿里云服务器防火墙与端口
阿里云服务器信息
Linux Center OS 7.3 x86_64
前言,Center OS 7.0 以后默认使用的是firewall作为防火墙,而Center OS 7.0以前,使用 iptables 作为防火墙,所以我们在开启、关闭、刷新服务以及打开端口都变了,使用systemctl命令。systemctl是CentOS7的服务管理工具中主要的工具,它融合之前service和chkconfig的功能于一体
1.firewalld的基本使用
启动: systemctl start firewalld
关闭: systemctl stop firewalld
查看状态: systemctl status firewalld
开机禁用: systemctl disable firewalld
开机启用: systemctl enable firewalld
2.配置firewalld-cmd
查看版本: firewall-cmd