博客
关于我
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/

你可能感兴趣的文章
NoSQL数据库概述
查看>>
Notadd —— 基于 nest.js 的微服务开发框架
查看>>
NOTE:rfc5766-turn-server
查看>>
Notepad ++ 安装与配置教程(非常详细)从零基础入门到精通,看完这一篇就够了
查看>>
Notepad++在线和离线安装JSON格式化插件
查看>>
notepad++最详情汇总
查看>>
notepad++正则表达式替换字符串详解
查看>>
notepad如何自动对齐_notepad++怎么自动排版
查看>>
Notes on Paul Irish's "Things I learned from the jQuery source" casts
查看>>
Notification 使用详解(很全
查看>>
NotImplementedError: Cannot copy out of meta tensor; no data! Please use torch.nn.Module.to_empty()
查看>>
NotImplementedError: Could not run torchvision::nms
查看>>
nova基于ubs机制扩展scheduler-filter
查看>>
Now trying to drop the old temporary tablespace, the session hangs.
查看>>
nowcoder—Beauty of Trees
查看>>
np.arange()和np.linspace()绘制logistic回归图像时得到不同的结果?
查看>>
np.power的使用
查看>>
NPM 2FA双重认证的设置方法
查看>>
npm build报错Cannot find module ‘webpack/lib/rules/BasicEffectRulePlugin‘解决方法
查看>>
npm build报错Cannot find module ‘webpack‘解决方法
查看>>