我的 linux 笔记

Posted youngxuebo

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了我的 linux 笔记相关的知识,希望对你有一定的参考价值。

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

以上是关于我的 linux 笔记的主要内容,如果未能解决你的问题,请参考以下文章