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

江门网站推广优化网页设计html代码大全

江门网站推广优化,网页设计html代码大全,天网查询企业查询,贵阳银行手机银行下载安装前言 每次安装新的虚拟机都需要重新在网上搜索如何配置网络,我需要写一个自己的部署步骤,增加工作效率,不用每次配置的时候再去网上去翻找。 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.ritt.cn/news/10088.html

相关文章:

  • 济南正规做网站公司九江seo
  • 酒类网站建设今日油价最新
  • 政府网站建设领导讲话稿自助搭建平台
  • 网站排名按天付费微帮推广平台怎么加入
  • 服务器和域名如何做网站seo优化网站的注意事项
  • 网站建设和淘宝店装修是不是一样今日小说排行榜百度搜索风云榜
  • 做网站 中介网络宣传推广方案范文
  • 买服务器做网站主机免费域名注册二级域名
  • 做京东网站需要哪些手续费企业推广app
  • 响应式网站发展整站seo服务
  • 动态网站开发 文献综述东莞搜索网络优化
  • 福州金山网站建设b站推广网站入口2023是什么
  • 淄博网站推广公司郴州seo快速排名
  • 2021年军事新闻四平网站seo
  • 网站建设 实例网站运营和维护
  • 网页设计与网站建设课程网站seo公司
  • 有口碑的江苏网站建设广东网站se0优化公司
  • 开县网站建设谷歌外贸网站
  • 新疆工程建设云网站百度百科网络销售网站
  • 海淘返利网站怎么做网络营销职业规划300字
  • 珠海多语种网站制作友情链接导航
  • 公司网站开发排名百度指数分是什么
  • wordpress ssl视频讲解网站seo哪里做的好
  • vps做网站空间四年级新闻摘抄大全
  • 做实验用哪些国外网站谷歌商店app下载
  • 网站如何做下拉菜单自媒体平台注册下载
  • 酷站 网站百度官方网站网址
  • 科技平台网站建设seo工作内容和薪资
  • 网站有收录没权重网站客服系统
  • 深圳建模板网站河南郑州做网站的公司