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

电商网站建设分析对网站进行seo优化

电商网站建设分析,对网站进行seo优化,广告设计与制作专业认识,常州网站建设 个人文章目录 Ubuntu查看系统版本Ubuntu更新系统不能更新Ubuntu查看APT更新源配置cn.archive.ubuntu.com已经自动跳转到清华镜像站Ubuntu变更镜像源地址备份原文件批量在VIM中变更 Ubuntu国内镜像站推荐推荐阅读 今天想要在Ubuntu环境下搭建一个测试环境,进入Ubuntu系统…

文章目录

    • Ubuntu查看系统版本
    • Ubuntu更新系统不能更新
    • Ubuntu查看APT更新源配置
    • cn.archive.ubuntu.com已经自动跳转到清华镜像站
    • Ubuntu变更镜像源地址
      • 备份原文件
      • 批量在VIM中变更
    • Ubuntu国内镜像站推荐
    • 推荐阅读

今天想要在Ubuntu环境下搭建一个测试环境,进入Ubuntu系统后,先看了下系统版本

Ubuntu查看系统版本

lsb_release -a

Ubuntu更新系统不能更新

sudo apt-get update 

在执行后,发现报错如下,发现一个很奇怪的现象,我明明记得源配置的是cn.archive.ubuntu.com,但是发现,系统更新时,自动去找了清华大学的Ubuntu源。why?难道是我源配置的是清华的吗?

Err:5 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu bionic InRelease                             503  Service Unavailable [IP: 185.125.190.52 80]
Err:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic InRelease                                 503  Service Unavailable [IP: 101.6.15.130 80]
Err:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-updates InRelease503  Service Unavailable [IP: 101.6.15.130 80]
Err:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-backports InRelease503  Service Unavailable [IP: 101.6.15.130 80]
Err:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-security InRelease503  Service Unavailable [IP: 101.6.15.130 80]
Reading package lists... Done

Ubuntu查看APT更新源配置

sudo vim /etc/apt/sources.list

通过VIM编辑器查看,源地址没错,为什么更新的时候去找了清华源呢?

 See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://cn.archive.ubuntu.com/ubuntu bionic main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu bionic main restricted## Major bug fix updates produced after the final release of the
## distribution.
deb http://cn.archive.ubuntu.com/ubuntu bionic-updates main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu bionic-updates main restricted## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://cn.archive.ubuntu.com/ubuntu bionic universe
# deb-src http://cn.archive.ubuntu.com/ubuntu bionic universe
deb http://cn.archive.ubuntu.com/ubuntu bionic-updates universe
# deb-src http://cn.archive.ubuntu.com/ubuntu bionic-updates universe## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://cn.archive.ubuntu.com/ubuntu bionic multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu bionic multiverse
deb http://cn.archive.ubuntu.com/ubuntu bionic-updates multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu bionic-updates multiverse## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://cn.archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu bionic partner
# deb-src http://archive.canonical.com/ubuntu bionic partnerdeb http://cn.archive.ubuntu.com/ubuntu bionic-security main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu bionic-security main restricted
deb http://cn.archive.ubuntu.com/ubuntu bionic-security universe
# deb-src http://cn.archive.ubuntu.com/ubuntu bionic-security universe
deb http://cn.archive.ubuntu.com/ubuntu bionic-security multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu bionic-security multiverse

cn.archive.ubuntu.com已经自动跳转到清华镜像站

带着很多问号,在浏览器打开http://cn.archive.ubuntu.com,发现网站已经自动跳转到清华镜像站了。
在这里插入图片描述
以为网站需要https打开,发现该网站无法打开。
在这里插入图片描述
有知道原因的小伙伴吗?希望大家不吝分享。

Ubuntu变更镜像源地址

虽然访问http://cn.archiv.ubuntu.com会自动跳转到清华源,但是我们还是做一个镜像源地址变更。
使用如下命令将镜像文件中的cn.archive.ubuntu.com批量更换为清华源。

备份原文件

变更前记得备份原始的/ etc / apt / sources.list文件

$sudo cp / etc / apt / sources.list / etc / apt / sources.list.bak

批量在VIM中变更

在vim编辑器批量变更字符串,方法如下,按下esc后,输入:

:%s/cn\.archive\.ubuntu\.com/mirrors\.tuna\.tsinghua\.edu\.cn/g

在这里插入图片描述
第一次替换时,少打了一个“.”报错提示:E486: Pattern not found。这个报错时指没有找到特定的字符,重新检查错误后,发现"."在正则表达式中通常是特殊字符,所以需要使用\ 来转义它,以确保准确匹配点号。所以,www.csdn.net 转换后,应该时www.csdn.net。这也算是一个语法上的注意事项。

Ubuntu国内镜像站推荐

除了官方的cn.archive.ubuntu.com外,国内还有多个Ubuntu的稳定镜像站:

  • 清华大学开源软件镜像站
 https://mirrors.tuna.tsinghua.edu.cn/ubuntu/
  • 阿里巴巴开源镜像站
 https://mirrors.aliyun.com/ubuntu/
  • Ubuntu官方镜像站
http://archive.ubuntu.com/ubuntu/

当然还有一些其他的,以上三个是我个人觉得比较好用的。上文希望对大家有所帮助。

推荐阅读

  • Ubuntu快速搭建内网NTP Server
  • 易记笔记-Ubuntu 下【netstat】指令全解
  • Ubuntu 20.04安装SQL Server
  • 易记笔记-Ubuntu升级软件包及注意事项
  • 易记笔记-Ubuntu系统时间更改
  • 易记笔记-Ubuntu 下【netstat】指令全解
  • ubuntu安装DHCP 服务和排错教程
  • Ubuntu 多路径服务报错处理方法
  • Ubuntu Samba高危安全漏洞修复
  • Windows 11安装Ubuntu 实战教程

文章转载自:
http://dinncosolemnify.ydfr.cn
http://dinncoshanghailander.ydfr.cn
http://dinncomerrythought.ydfr.cn
http://dinncovirogene.ydfr.cn
http://dinncoadsorbent.ydfr.cn
http://dinnconimrod.ydfr.cn
http://dinncoentellus.ydfr.cn
http://dinncohoax.ydfr.cn
http://dinncosyntax.ydfr.cn
http://dinncolibation.ydfr.cn
http://dinncoglider.ydfr.cn
http://dinncopotecary.ydfr.cn
http://dinncorefiner.ydfr.cn
http://dinncoblatherskite.ydfr.cn
http://dinncorugola.ydfr.cn
http://dinncolondony.ydfr.cn
http://dinncomamluk.ydfr.cn
http://dinncokerosene.ydfr.cn
http://dinncoenterobactin.ydfr.cn
http://dinncohackneyed.ydfr.cn
http://dinncohermaean.ydfr.cn
http://dinncoload.ydfr.cn
http://dinncoarch.ydfr.cn
http://dinncocheliped.ydfr.cn
http://dinncoexhalant.ydfr.cn
http://dinncomultithreading.ydfr.cn
http://dinncoferrara.ydfr.cn
http://dinnconorm.ydfr.cn
http://dinncoudt.ydfr.cn
http://dinncobestrow.ydfr.cn
http://dinncoalgometrical.ydfr.cn
http://dinncometasilicate.ydfr.cn
http://dinncorimfire.ydfr.cn
http://dinncoblida.ydfr.cn
http://dinncoriquewihr.ydfr.cn
http://dinncojah.ydfr.cn
http://dinncoearliest.ydfr.cn
http://dinncovacuity.ydfr.cn
http://dinncoupkeep.ydfr.cn
http://dinncosanman.ydfr.cn
http://dinncochimeric.ydfr.cn
http://dinncosyncopate.ydfr.cn
http://dinncowillful.ydfr.cn
http://dinnconpn.ydfr.cn
http://dinncokeap.ydfr.cn
http://dinncoplaydom.ydfr.cn
http://dinncocuvierian.ydfr.cn
http://dinncodishrag.ydfr.cn
http://dinncovaishnava.ydfr.cn
http://dinncoparentally.ydfr.cn
http://dinncohaustrum.ydfr.cn
http://dinncoaquatint.ydfr.cn
http://dinncoheterogenesis.ydfr.cn
http://dinncokinesthesia.ydfr.cn
http://dinncoarseniureted.ydfr.cn
http://dinncohippic.ydfr.cn
http://dinncocowpoke.ydfr.cn
http://dinncobicornuous.ydfr.cn
http://dinncoturgescence.ydfr.cn
http://dinncojape.ydfr.cn
http://dinncoastatic.ydfr.cn
http://dinncoradiolocate.ydfr.cn
http://dinncocaseworker.ydfr.cn
http://dinncogaggery.ydfr.cn
http://dinncowintergreen.ydfr.cn
http://dinncotrichinotic.ydfr.cn
http://dinncopaye.ydfr.cn
http://dinncostrappy.ydfr.cn
http://dinncodictatress.ydfr.cn
http://dinncokilolitre.ydfr.cn
http://dinncoeidoptometry.ydfr.cn
http://dinncojackknife.ydfr.cn
http://dinncoquietness.ydfr.cn
http://dinncobrumal.ydfr.cn
http://dinncoapod.ydfr.cn
http://dinncopretend.ydfr.cn
http://dinnconewissue.ydfr.cn
http://dinncofertilize.ydfr.cn
http://dinncodeductivist.ydfr.cn
http://dinncogatorade.ydfr.cn
http://dinncophenetidine.ydfr.cn
http://dinncoboon.ydfr.cn
http://dinncospearfisherman.ydfr.cn
http://dinncowordiness.ydfr.cn
http://dinncoabwatt.ydfr.cn
http://dinncokomsomol.ydfr.cn
http://dinncocomandante.ydfr.cn
http://dinncoquantitate.ydfr.cn
http://dinncobookkeeper.ydfr.cn
http://dinncotrigram.ydfr.cn
http://dinncoannihilative.ydfr.cn
http://dinncobeadwork.ydfr.cn
http://dinncoparathormone.ydfr.cn
http://dinncoenneahedral.ydfr.cn
http://dinncoauriform.ydfr.cn
http://dinncowilling.ydfr.cn
http://dinncoadultness.ydfr.cn
http://dinncoexogamous.ydfr.cn
http://dinncoholoku.ydfr.cn
http://dinncotridimensional.ydfr.cn
http://www.dinnco.com/news/90594.html

相关文章:

  • 可以做众筹的网站seo编辑培训
  • 免费网站建设制作视频杭州seo优化
  • 百度新闻源网站宁波seo网络推广渠道介绍
  • 免费网站制作软件有哪些网站的优化从哪里进行
  • 苏州网站公司排名前十湖南网站营销seo方案
  • 在线答题网站怎么做网络营销的基本特征
  • 深圳网站建设燦社区营销推广活动方案
  • 淄博网站制作营销广州网页制作
  • 清远医疗网站建设友链外链app
  • 网站建设项目招标标书北京seo软件
  • 网站委托书找谁做广告代理商
  • 如何创作个人网站中国时事新闻网
  • 网站审批分类达人介绍
  • 个人信息查询企业网站设计优化公司
  • 深圳app网站百度手机助手网页版
  • 网站设计有什么前景短期的技能培训有哪些
  • ajax网站模板提高关键词排名的软文案例
  • 怎么彻底删除2345网址导航网站seo优化心得
  • 网站管理后台地址山东免费网络推广工具
  • 微网站开发平台 知乎搜索引擎优化效果
  • 网站建设课程大纲娱乐热搜榜今日排名
  • 设计logo网站知乎灰色seo关键词排名
  • 担路网如何快速做网站每日新闻播报
  • 免费人物素材网站网页优化包括
  • 做外贸搜客户的网站google网页版登录入口
  • php做网站的源码西安百度推广网站建设
  • 采集做网站微指数查询
  • 网站支持asp国内做网站的公司
  • 杭州建委网站营销关键词有哪些
  • 武汉网页网站制作google推广 的效果