本文共 848 字,大约阅读时间需要 2 分钟。
/linux常用应用命令指南/
作为技术人员,在日常Linux操作中需要掌握许多实用的命令操作。本文将为你提供一些常见的操作命令以及使用方法。
在Linux系统中,可以通过以下方法切换至多用户模式:
vim /etc/inittabsystemctl get-defaultsystemctl set-default graphical.targetsystemctl set-default multi-user.targetsystemctl stop firewalld.service-永久关闭防火墙:systemctl disable firewalld.service-temporary disable SELinux:setenforce 0-permanent disable SELinux(需重启系统):编辑文件vi /etc/selinux/config,将SELINUX=enforcing修改为SELINUX=disabled
systemctl restart network.servicevi /etc/ssh/sshd_config#Port 22前面的#systemctl restart sshdyum -y install nfs-utilssystemctl enable nfs-serversystemctl start nfs-serversystemctl is-active nfs-serverlsblk这些命令可以帮助您有效管理Linux系统,希望对您有所帮助!
转载地址:http://qczuk.baihongyu.com/