CentOS7网络配置和服务管理
2023-09-11 14:20:53 时间
一、配置网络
在使用Vmware Workstation10.2测试过程中,发现可能部分物理机100M网卡不能正常识别,换到了1000M网卡上测试能正常识别虚拟网卡
Centos7系统的网卡设备命名有所变化,可参考CentOS 7下网络设备命名,个人感觉既然学习新系统,完全没必要换成传统的识别名方式,要勇于接受新知识~
1.通过编辑文件修改网络配置
nameserver 192.168.117.2 2.通过文本工具nmtui修改网络配置(RHEL7/CentOS7默认安装,前提需要开启NetworkManager.service才可以使用) yum -y install NetworkManager-tui nmtui-edit eno16777736 修改网卡配置 nmtui-connect eno16777736 重启网络 systemctl restart network systemctl status network 修改主机名: vim /etc/hostname centos7.simlinux.com 退出重新登录即可生效
二、关闭不必要的服务 最小化安装的Centos7系统并没有nano、vim、wget、curl、ifconfig、lsof命令,这里首先安装一下: yum -y install nano vim wget curl net-tools lsof 可以通过netstat和lsof查看系统都运行了哪些服务,将不必要的进行关闭
systemctl list-unit-files 查看正在运行服务的状态报告 systemctl start httpd.service 启动服务 systemctl stop httpd.service 关闭服务 systemctl restart httpd.service 重启服务 systemctl reload httpd.service 重新加载服务 systemctl disable httpd.service 开机不启动 systemctl enable httpd.service 开机启动 systemctl status httpd.service 查看服务运行状态 systemctl show httpd.service 显示服务或任务的属性 systemctl list-dependencies httpd.service 检查服务依赖关系 systemctl is-enabled httpd.service 检查服务是否开机启动及级别 systemctl -H 192.168.117.128 start httpd.service 启动192.168.117.128机器上的httpd服务
Linux-CentOS-指令修改网络自动获取IP 今天尝试使用虚拟机安装完成了CentOS的迷你版本,进去就是命令界面,没有图形界面,但是了,又不能上网,如下图所示
centOS7.0网络配置 因为最近要使用docker,所以打算在centOS7上操作,本文记录下centOS7上的网络配置的内容。首先需要安装好centOS7的虚拟机,我这安装的是 CentOS-7-x86_64-Minimal-1810.iso精简版的。
nameserver 192.168.117.2 2.通过文本工具nmtui修改网络配置(RHEL7/CentOS7默认安装,前提需要开启NetworkManager.service才可以使用) yum -y install NetworkManager-tui nmtui-edit eno16777736 修改网卡配置 nmtui-connect eno16777736 重启网络 systemctl restart network systemctl status network 修改主机名: vim /etc/hostname centos7.simlinux.com 退出重新登录即可生效
二、关闭不必要的服务 最小化安装的Centos7系统并没有nano、vim、wget、curl、ifconfig、lsof命令,这里首先安装一下: yum -y install nano vim wget curl net-tools lsof 可以通过netstat和lsof查看系统都运行了哪些服务,将不必要的进行关闭
systemctl list-unit-files 查看正在运行服务的状态报告 systemctl start httpd.service 启动服务 systemctl stop httpd.service 关闭服务 systemctl restart httpd.service 重启服务 systemctl reload httpd.service 重新加载服务 systemctl disable httpd.service 开机不启动 systemctl enable httpd.service 开机启动 systemctl status httpd.service 查看服务运行状态 systemctl show httpd.service 显示服务或任务的属性 systemctl list-dependencies httpd.service 检查服务依赖关系 systemctl is-enabled httpd.service 检查服务是否开机启动及级别 systemctl -H 192.168.117.128 start httpd.service 启动192.168.117.128机器上的httpd服务
Linux-CentOS-指令修改网络自动获取IP 今天尝试使用虚拟机安装完成了CentOS的迷你版本,进去就是命令界面,没有图形界面,但是了,又不能上网,如下图所示
centOS7.0网络配置 因为最近要使用docker,所以打算在centOS7上操作,本文记录下centOS7上的网络配置的内容。首先需要安装好centOS7的虚拟机,我这安装的是 CentOS-7-x86_64-Minimal-1810.iso精简版的。
相关文章
- linux(centos7)防火墙配置firewalld和iptables
- 阿里云服务器+ftp文件操作+基于Centos7的vsftpd配置
- centos7上安装docker
- centos7: vsftpd安装及启动: ftp配置(以虚拟用户为例)
- Centos7 squid安装与配置
- centos7中安装python3,配置python虚拟环境,
- Centos7等保三级检查命令
- Centos7 k8s v1.5.2二进制部署安装-flannel之NAT规则优化
- Centos7搭建discuz论坛
- CentOS7 64位下MySQL5.7安装与配置
- CentOS7 防火墙配置firewall-cmd
- 【异常】解决Centos7 解决安装Nginx错误:No rule to make target build , needed by default .Stop.
- vmware centos7配置虚拟机NAT连接上网详细教程
- Centos7 防火墙常用配置及说明
- centos7安装cockpit图形管理界面
- CentOS7下RabbitMQ服务安装配置
- 升级centos7自带的Python2.7到Python3.8
- Centos7 安装并启动 Redis-6.2.6
- Centos7查看地址ifconfig不存在
- 【高可用MySQL解决方案】centos7配置mysql主从复制
- Centos7安装和配置Scala2.12版本
- 基于Hyper-V的centos7虚拟机配置静态ip
- centos7上部署zabbix4.0版本--最新配置(二)
- 完成docker安装centos7操作系统实战
- Centos7使用network-scripts网络配置