Linux系统,常用服务类相关命令有哪些

Linux系统,常用服务类相关命令

  • Centos 6

    image-1660484747509

    image-1660484778330

    • 实操命令
    servier network status
    chkconfig --list
    chkconfig --level 5 network off
    
  • Centos 7

    image-1660484800193

    • 实操命令
    systemctl status firewalld
    systemctl stop firewalld
    systemctl list-unit-files 
    systemctl list-unit-files | grep firewalld
    systemctl disable firewalld 
    

彩蛋

1.查看服务器版本
1)查看Linux内核版本命令(两种方法)

cat /proc/version
uname -a

2)查看Linux系统版本的命令(3种方法):

lsb_release -a,即可列出所有版本信息:
cat /etc/redhat-release,这种方法只适合Redhat系的Linux:
cat /etc/issue,此命令也适用于所有的Linux发行版。

参考

2.centos 7可以用centos 6命令,是兼容的
3.chkconfig level
3-无图形化界面
5-有图形化界面

最近的文章

git分支相关命令,实际应用

git分支相关命令,实际应用分支git工作流彩蛋Git is a free and open source distributed version control system designed to handle everything from small to very large projec…

继续阅读
更早的文章

MyBatis中当实体类中的属性名和表中的字段名不一样怎么办

MyBatis中当实体类中的属性名和表中的字段名不一样怎么办 ?解决方案:1.写sql语句时起别名2.在MyBatis的全局配置文件中开启驼峰命名规则3.在Mapper映射文件中使用resultMap来自定义映射规则代码show代码结构图核心jar包:核心代码配置EmployeeMapper.xml…

继续阅读