栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

CentOS7 NetworkManaer 未运行

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

CentOS7 NetworkManaer 未运行

[root@localhost ~]# nmtui
NetworkManaer 未运行。

但是ping外网是没有问题的。

输入以下命令:

yum install NetworkManager-tui

yum-config-manager --enable

systemctl start NetworkManager

再次输入nmtui,就可以发现进入设置窗口了

 后来发现ssh提示连接超时,用虚拟ping主机能连接,而主机无法访问虚拟机,修改 /etc/ssh/  目录下的sshd服务配置文件 sshd_config

  1 #       $OpenBSD: sshd_config,v 1.100 2016/08/15 12:32:04 naddy Exp $
  2 
  3 # This is the sshd server system-wide configuration file.  See
  4 # sshd_config(5) for more information.
  5 
  6 # This sshd was compiled with PATH=/usr/local/bin:/usr/bin
  7 
  8 # The strategy used for options in the default sshd_config shipped with
  9 # OpenSSH is to specify options with their default value where
 10 # possible, but leave them commented.  Uncommented options override the
 11 # default value.
 12 
 13 # If you want to change the port on a SELinux system, you have to tell
 14 # SELinux about this change.
 15 # semanage port -a -t ssh_port_t -p tcp #PORTNUMBER
 16 #
 17 Port 22  #开启22端口
 18 #AddressFamily any
 19 #ListenAddress 0.0.0.0
 20 #ListenAddress ::

保存后,再次连接,连接成功。

参考:虚拟机下CentOS7开启SSH连接_dh2580-CSDN博客_centos7开启ssh

参考:“Linux打开nmtui出现NetworkManager is not running怎么办_鸭腿面好吃的博客-CSDN博客”

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/320455.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号