当前位置: 首页 > news >正文

景安网站备案查询网页设计与制作软件

景安网站备案查询,网页设计与制作软件,每日优鲜app算网站建设,网站主页设计素材前言 每次安装新的虚拟机都需要重新在网上搜索如何配置网络,我需要写一个自己的部署步骤,增加工作效率,不用每次配置的时候再去网上去翻找。 1.只需要联网功能记录(不固定IP) 1.1 修改ifcfg-ens33 vi etc/sysconfig/network-scripts/ifcfg…

前言

  每次安装新的虚拟机都需要重新在网上搜索如何配置网络,我需要写一个自己的部署步骤,增加工作效率,不用每次配置的时候再去网上去翻找。

1.只需要联网功能记录(不固定IP)

1.1 修改ifcfg-ens33

vi etc/sysconfig/network-scripts/ifcfg-ens33

在这里插入图片描述
不需要修改太多,只需要修改onboot即可,意思是开机自动加载此配置文件。


1.2 设置虚拟机网络设置

在这里插入图片描述

1.3 重启网络

systemctl restart network

2 固定IP修改模式

在这里插入图片描述
需要修改圈里面的地方

3 修改centos源

3.1 修改CentOS-Base.repo

# 备份原来的源
sudo mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
sudo wget http://mirrors.aliyun.com/repo/Centos-7.repo
sudo mv Centos-7.repo /etc/yum.repos.d/CentOS-Base.repo
sudo yum update
sudo yum upgrade

如果源失败了,可以下载复制这里的文件:

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the 
# remarked out baseurl= line instead.
#
#[base]
name=CentOS-$releasever - Base - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/os/$basearch/http://mirrors.aliyuncs.com/centos/$releasever/os/$basearch/http://mirrors.cloud.aliyuncs.com/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7#released updates 
[updates]
name=CentOS-$releasever - Updates - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/updates/$basearch/http://mirrors.aliyuncs.com/centos/$releasever/updates/$basearch/http://mirrors.cloud.aliyuncs.com/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/extras/$basearch/http://mirrors.aliyuncs.com/centos/$releasever/extras/$basearch/http://mirrors.cloud.aliyuncs.com/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/centosplus/$basearch/http://mirrors.aliyuncs.com/centos/$releasever/centosplus/$basearch/http://mirrors.cloud.aliyuncs.com/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/contrib/$basearch/http://mirrors.aliyuncs.com/centos/$releasever/contrib/$basearch/http://mirrors.cloud.aliyuncs.com/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7

3.2 修改CentOS-SCLo-scl.repo和CentOS-SCLo-scl-rh.repo

在这里插入图片描述
如图所示,只需要将其mirrorlist注释掉,修改baseurl即可
在这里插入图片描述
在这里插入图片描述

# CentOS-SCLo-scl.repo
[centos-sclo-sclo]
...
baseurl=https://mirrors.aliyun.com/centos/7/sclo/x86_64/sclo/
...
# CentOS-SCLo-scl-rh.repo
[centos-sclo-rh]
...
baseurl=https://mirrors.aliyun.com/centos/7/sclo/x86_64/rh/
...

4 可能出现的错误

3.1 可能找不到ifcfg-ens33

通过ip add去查看网卡即可,如下图所示:
在这里插入图片描述

3.1 name or service not known

vi /etc/resolv.conf
# nameserver 114.114.114.114
# nameserver 114.114.114.115

总结

这次配置centos只碰到这些问题,以后如果遇到其他问题会继续更新。

http://www.mmbaike.com/news/53778.html

相关文章:

  • 做愛視頻网站短网址生成器免费
  • 万户网络实施时间推广关键词优化
  • 国际加速器永久免费版适合seo的网站
  • 域名绑定网站需要多久bt磁力种子搜索引擎
  • 网站中的知识 视频从哪里来的seo经典案例
  • 遵义网站开发培训今天的新闻 最新消息摘抄
  • 营销网站建设推广新冠疫情最新消息今天
  • 如何取消网站备案号360搜索引擎首页
  • 网站推广是做什么工作青岛seo全网营销
  • 北京专业网站建设服务商现在怎么做网络推广
  • 石家庄上门洗车扬州网络优化推广
  • 淄博外贸网站制作网络营销策略包括哪几大策略
  • 外挂网站怎么做最新seo新手教程
  • 众筹网站功能百度网页推广怎么做
  • 广州市建设集团网站首页网页
  • 网站改版业务百度热榜实时热点
  • 没钱怎么做网站百度做广告
  • 网站做图分辨率是多少腾讯3大外包公司
  • 鸡西建设银行网站企业如何做好网络营销
  • 平面设计工资一般薪资多少网站关键词优化办法
  • 江门网站建设定制宁德市疫情最新消息
  • 湖州网站建设湖州网站建设b站推广2023
  • 怎么做音乐网站搜索百度一下
  • 镜像别人网站做排名的好处优化大师安卓版
  • 产品推广活动策划方案优化师培训
  • 阿坝州网站制作网站开通
  • 政府部门网站建设方案成人短期培训能学什么
  • 政府信息门户网站解决方案快速排名怎么做
  • 如何做网站教程网站收录入口申请查询
  • 武汉有那些做网站设计的公司浙江seo