博客
关于我
linux工程常用的应用命令总结:
阅读量:778 次
发布时间:2019-03-24

本文共 848 字,大约阅读时间需要 2 分钟。

/linux常用应用命令指南/

作为技术人员,在日常Linux操作中需要掌握许多实用的命令操作。本文将为你提供一些常见的操作命令以及使用方法。

1. 设置多用户模式

在Linux系统中,可以通过以下方法切换至多用户模式:

  • 修改初始化文件:vim /etc/inittab
  • 查看当前模式:systemctl get-default
  • 设置图像模式:systemctl set-default graphical.target
  • 设置命令行模式:systemctl set-default multi-user.target

2. 操作防火墙

  • 临时关闭防火墙:systemctl stop firewalld.service-永久关闭防火墙:systemctl disable firewalld.service

3. 关闭SELinux

-temporary disable SELinux:setenforce 0-permanent disable SELinux(需重启系统):编辑文件vi /etc/selinux/config,将SELINUX=enforcing修改为SELINUX=disabled

4. 网卡操作

  • 重启网络服务:systemctl restart network.service

5. SSH端口修改

  • 修改配置文件:vi /etc/ssh/sshd_config
  • 注释原端口:删除#Port 22前面的#
  • 修改后请重启SSH服务:systemctl restart sshd

6. 安装NFS服务

  • 安装工具:yum -y install nfs-utils
  • 启动服务:systemctl enable nfs-server
  • 启动服务:systemctl start nfs-server
  • 查看服务状态:systemctl is-active nfs-server

7. 查看磁盘信息

  • 显示磁盘结构:lsblk

这些命令可以帮助您有效管理Linux系统,希望对您有所帮助!

转载地址:http://qczuk.baihongyu.com/

你可能感兴趣的文章
NLP:使用 SciKit Learn 的文本矢量化方法
查看>>
nmap 使用方法详细介绍
查看>>
nmap使用
查看>>
Nmap扫描教程之Nmap基础知识
查看>>
nmap指纹识别要点以及又快又准之方法
查看>>
Nmap渗透测试指南之指纹识别与探测、伺机而动
查看>>
Nmap端口扫描工具Windows安装和命令大全(非常详细)零基础入门到精通,收藏这篇就够了
查看>>
NMAP网络扫描工具的安装与使用
查看>>
NMF(非负矩阵分解)
查看>>
nmon_x86_64_centos7工具如何使用
查看>>
NN&DL4.1 Deep L-layer neural network简介
查看>>
NN&DL4.3 Getting your matrix dimensions right
查看>>
NN&DL4.7 Parameters vs Hyperparameters
查看>>
NN&DL4.8 What does this have to do with the brain?
查看>>
nnU-Net 终极指南
查看>>
No 'Access-Control-Allow-Origin' header is present on the requested resource.
查看>>
NO 157 去掉禅道访问地址中的zentao
查看>>
no available service ‘default‘ found, please make sure registry config corre seata
查看>>
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
查看>>
no connection could be made because the target machine actively refused it.问题解决
查看>>