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

网站建设更改青岛开发区做网站设计的

网站建设更改,青岛开发区做网站设计的,vivo官网网站服务,广告优化是做什么的前言 每次安装新的虚拟机都需要重新在网上搜索如何配置网络,我需要写一个自己的部署步骤,增加工作效率,不用每次配置的时候再去网上去翻找。 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.yayakq.cn/news/758299/

相关文章:

  • 网站关键词多少个字数 站长网用ps做一份网站
  • 网站四对联广告代码在vs中做网站如何连接数据库
  • 福州网站网页设计医疗网站建设策划
  • 网站建设备案是什么深圳燃气招聘网最新招聘
  • 苏州电信网站备案济南信息化网站
  • 百度站长平台申请提交链接雄安新区做网站公司
  • 公司做的网站过期了天津建设工程信息网网页版
  • 柳州住房和城乡建设厅网站广告的六种广告形式
  • 做网站时如何将前端连接到后台黑群晖 frp wordpress 访问
  • 深圳建设招标网站首页注册网站账号审核不通过无法登陆怎么办
  • 济南网站建设公司公司网站建站模板模板
  • 做网站就是做服务网站前端和后台
  • 自适应网站价格wordpress 常用主题
  • 嘉兴装修公司做网站制作公司网站的步骤
  • 千库网ppt榆林百度seo
  • 网站模板免费企业设计网页
  • 申请域名后可以做自己的网站吗动画制作软件免费
  • 电影网站做淘宝联盟wordpress折叠
  • 新网站建设风格网站制作公司司
  • 门户网站介绍企业网站设计制作价格
  • 网站建设需要了解哪些方面一条龙建站多少钱
  • 全国高校校园网站联盟建设金色世纪做网站的是哪个岗位
  • 优化好的网站搭建网站一般多少钱
  • 天津住房和城乡建设建造师网站wordpress等模版比较
  • 在线网站创做简历广州高端网站建设定制
  • 旅游网站建设成都wordpress网站加入商城
  • 网站移动端是什么问题ps怎么做网站首页界面
  • 深圳网站建设软件开发公司做网站用什么源码
  • 上海网站建设 迈若小程序怎么开发
  • 北京中交建设工程咨询有限公司网站专注湛江地区网站开发定制建设