1)查看内核版本: uname -r 。
2)安装Apache服务器(端口80)
yum list | grep httpd #查看httpd包是否可用
yum install httpd #安装Apache服务器
vi /etc/httpd/conf/httpd.conf
#配置ServerName,如果没有域名,则:ServerName localhost:80 或者 ServerName 127.0.0.1:80
#启动
systemctl start httpd.service
service httpd start
# 查看状态
systemctl status httpd.service
#停止
systemctl start httpd.service
httpd -k stop
#设置开机自动启动:
chkconfig httpd on
3) 安装上传下载命令: yum -y install lrzsz
4)判断 7001 端口是否被占用:netstat -tunlp | grep 7001