最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

實(shí)例分析對(duì)于歷史Linux鏡像的問題進(jìn)行修復(fù)處理

 更新時(shí)間:2019年02月04日 10:14:39   投稿:laozhang  
在本篇內(nèi)容中我們給大家總結(jié)了關(guān)于對(duì)于歷史Linux鏡像的問題進(jìn)行修復(fù)處理知識(shí)點(diǎn),有需要的朋友們跟著學(xué)習(xí)下。

歷史Linux鏡像的問題修復(fù)方案

歷史Linux鏡像創(chuàng)建的ECS云服務(wù)器,可能存在NTP沒有配置,YUM沒有配置,還可能存在最近暴漏較高的安全漏洞,請(qǐng)按照以下步驟進(jìn)行修復(fù),可以讓您的云服務(wù)器更加安全,還可以使用阿里云提供的YUM服務(wù)進(jìn)行安裝軟件,可以使用免費(fèi)的阿里云提供的NTP進(jìn)行時(shí)間同步。

1. 配置NTP

不區(qū)分發(fā)行版,先備份 /etc/ntp.conf,然后將其內(nèi)容替換為如下:

# ntp.conf

#

# ntpd config for aliyun ecs.

#

# 6LAN+6LAN+3WAN

#        shijun.cao@alibaba-inc.com

#        2014.8.11

#

driftfile /var/lib/ntp/drift

pidfile  /var/run/ntpd.pid

logfile /var/log/ntp.log

# Access Control Support

restrict  default ignore

restrict -6 default ignore

restrict 127.0.0.1

restrict 192.168.0.0 mask 255.255.0.0 nomodify notrap nopeer noquery

restrict 172.16.0.0 mask 255.240.0.0 nomodify notrap nopeer noquery

restrict 100.64.0.0 mask 255.192.0.0 nomodify notrap nopeer noquery

restrict 10.0.0.0 mask 255.0.0.0 nomodify notrap nopeer noquery

restrict ntp1.aliyun.com nomodify notrap nopeer noquery

restrict ntp2.aliyun.com nomodify notrap nopeer noquery

restrict ntp3.aliyun.com nomodify notrap nopeer noquery

restrict ntp4.aliyun.com nomodify notrap nopeer noquery

restrict ntp5.aliyun.com nomodify notrap nopeer noquery

restrict ntp6.aliyun.com nomodify notrap nopeer noquery

# local clock

server 127.127.1.0

fudge 127.127.1.0 stratum 10

#public ntp server

server ntp1.aliyun.com iburst minpoll 4 maxpoll 10

server ntp2.aliyun.com iburst minpoll 4 maxpoll 10

server ntp3.aliyun.com iburst minpoll 4 maxpoll 10

server ntp4.aliyun.com iburst minpoll 4 maxpoll 10

server ntp5.aliyun.com iburst minpoll 4 maxpoll 10

server ntp6.aliyun.com iburst minpoll 4 maxpoll 10

#Private ntp server

server ntp1.cloud.aliyuncs.com iburst minpoll 4 maxpoll 10

server ntp2.cloud.aliyuncs.com iburst minpoll 4 maxpoll 10

server ntp3.cloud.aliyuncs.com iburst minpoll 4 maxpoll 10

server ntp4.cloud.aliyuncs.com iburst minpoll 4 maxpoll 10

server ntp5.cloud.aliyuncs.com iburst minpoll 4 maxpoll 10

server ntp6.cloud.aliyuncs.com iburst minpoll 4 maxpoll 10

#New private ntp server

server ntp7.cloud.aliyuncs.com iburst minpoll 4 maxpoll 10

server ntp8.cloud.aliyuncs.com iburst minpoll 4 maxpoll 10

server ntp9.cloud.aliyuncs.com iburst minpoll 4 maxpoll 10

server ntp10.cloud.aliyuncs.com iburst minpoll 4 maxpoll 10

server ntp11.cloud.aliyuncs.com iburst minpoll 4 maxpoll 10

server ntp12.cloud.aliyuncs.com iburst minpoll 4 maxpoll 10

2. 更新軟件源

0 . 先確認(rèn)鏡像當(dāng)前的 Linux 系統(tǒng)發(fā)行版和版本號(hào)。

如果有 lsb_release 命令,執(zhí)行:

lsb_release -a

否則執(zhí)行

cat /etc/issue

1 . 對(duì)于 CentOS,備份 /etc/yum.repos.d/ 下的 CentOS-Base.repo 和 epel.repo 文件,根據(jù) CentOS 版本,執(zhí)行如下相應(yīng)的命令:

CentOS 5:

wget -qO /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo

wget -qO /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-5.repo

CentOS 6:

wget -qO /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

wget -qO /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo

CentOS 7:

wget -qO /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

wget -qO /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

repo 文件下載完成后,執(zhí)行:

yum makecache

2 . 對(duì)于 Aliyun 5.7,備份 /etc/yum.repos.d/CentOS-Base.repo ,然后執(zhí)行:

wget -qO /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/aliyun-5.repo

repo 文件下載完成后,執(zhí)行:

yum makecache

3 . 對(duì)于 Ubuntu,備份 /etc/apt/sources.list 文件,根據(jù)發(fā)行版版本,執(zhí)行命令:

ubuntu12.04:

wget -qO /etc/apt/sources.list http://mirrors.aliyun.com/repo/ubuntu1204-lts.list

ubuntu14.04:

wget -qO /etc/apt/sources.list http://mirrors.aliyun.com/repo/ubuntu1404-lts.list

然后執(zhí)行:

apt-get update

4 . 對(duì)于 Debian,備份 /etc/apt/sources.list 文件,根據(jù)發(fā)行版版本,執(zhí)行命令:

debian6:

wget -qO /etc/apt/sources.list http://mirrors.aliyun.com/repo/debian6-lts.list

debian7:

wget -qO /etc/apt/sources.list http://mirrors.aliyun.com/repo/debian7-lts.list

然后執(zhí)行:

apt-get update

3. 安全漏洞修復(fù)補(bǔ)丁

主要修復(fù)目前已知的重大安全漏洞,需要升級(jí)的軟件包括: bash 、glibc 、 openssl 、wget 、ntp 。

在執(zhí)行如下命令之前,需要確保系統(tǒng)當(dāng)前的軟件源已經(jīng)設(shè)置正確。

1 . 對(duì)于 CentOS 和 Aliyun Linux,執(zhí)行:

yum update bash glibc openssl wget ntp

2 . 對(duì)于 Ubuntu 和 Debian,執(zhí)行:

apt-get install bash libc6 libc-bin openssl wget ntp

相關(guān)文章

  • Ubuntu搭建Eclipse+JDK+SDK的Android開發(fā)環(huán)境

    Ubuntu搭建Eclipse+JDK+SDK的Android開發(fā)環(huán)境

    本篇文章主要介紹了Ubuntu搭建Eclipse+JDK+SDK的Android開發(fā)環(huán)境,有興趣的同學(xué)可以了解一下。
    2016-11-11
  • ubuntu16.04在python3 下創(chuàng)建Django項(xiàng)目并運(yùn)行的操作方法

    ubuntu16.04在python3 下創(chuàng)建Django項(xiàng)目并運(yùn)行的操作方法

    這篇文章主要介紹了ubuntu16.04在python3 下創(chuàng)建Django項(xiàng)目并運(yùn)行,本文圖文并茂給大家介紹的非常詳細(xì),具有一定的參考借鑒價(jià)值,需要的朋友可以參考下
    2018-09-09
  • Ubuntu下kaldi安裝配置圖文教程

    Ubuntu下kaldi安裝配置圖文教程

    這篇文章主要介紹了Ubuntu下kaldi安裝配置圖文教程,本文圖文并茂給大家介紹的非常詳細(xì),具有一定的參考借鑒價(jià)值,需要的朋友參考下吧
    2018-08-08
  • centos7利用yum安裝lnmp的教程(linux+nginx+php7.1+mysql5.7)

    centos7利用yum安裝lnmp的教程(linux+nginx+php7.1+mysql5.7)

    lnmp相信不用多介紹了,大家應(yīng)該都知道,下面這篇文章主要給大家介紹了關(guān)于centos7利用yum安裝lnmp(linux+nginx+php7.1+mysql5.7)的相關(guān)資料,文中通過示例代碼介紹的非常詳細(xì),需要的朋友可以參考借鑒,下面來一起看看吧。
    2018-03-03
  • CentOS 6.5配置本地Yum源教程

    CentOS 6.5配置本地Yum源教程

    這篇文章主要為大家詳細(xì)介紹了CentOS 6.5配置本地Yum源教程,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下
    2017-04-04
  • Ubuntu下如何創(chuàng)建XFS文件系統(tǒng)的LVM詳解

    Ubuntu下如何創(chuàng)建XFS文件系統(tǒng)的LVM詳解

    這篇文章主要給大家介紹了關(guān)于在Ubuntu下如何創(chuàng)建XFS文件系統(tǒng)的LVM的相關(guān)資料,文中通過示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2018-10-10
  • Linux修改dmesg輸出的日志級(jí)別的步驟詳解

    Linux修改dmesg輸出的日志級(jí)別的步驟詳解

    要修改 /proc/sys/kernel/printk 文件的內(nèi)容以更改 dmesg 輸出的級(jí)別,可以通過命令行進(jìn)行操作,這個(gè)文件包含四個(gè)值,分別代表內(nèi)核消息的不同級(jí)別,本文給大家介紹了Linux修改dmesg輸出的日志級(jí)別的步驟,需要的朋友可以參考下
    2024-07-07
  • Linux實(shí)現(xiàn)驅(qū)動(dòng)模塊傳參過程解析

    Linux實(shí)現(xiàn)驅(qū)動(dòng)模塊傳參過程解析

    這篇文章主要介紹了Linux實(shí)現(xiàn)驅(qū)動(dòng)模塊傳參過程解析,文中通過示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友可以參考下
    2020-09-09
  • linux提示未找到命令unzip和zip的解決方案

    linux提示未找到命令unzip和zip的解決方案

    這篇文章主要介紹了linux提示未找到命令unzip和zip的解決方案,具有很好的參考價(jià)值,希望對(duì)大家有所幫助,如有錯(cuò)誤或未考慮完全的地方,望不吝賜教
    2023-12-12
  • grub損壞,開機(jī)出現(xiàn)GRUB 2 啟動(dòng)提示符的解決方法

    grub損壞,開機(jī)出現(xiàn)GRUB 2 啟動(dòng)提示符的解決方法

    下面小編就為大家?guī)硪黄猤rub損壞,開機(jī)出現(xiàn)GRUB 2 啟動(dòng)提示符的解決方法。小編覺得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看吧
    2016-12-12

最新評(píng)論

阳朔县| 深圳市| 桂林市| 广昌县| 北辰区| 肥西县| 新巴尔虎左旗| 甘泉县| 错那县| 上林县| 航空| 吉隆县| 唐山市| 册亨县| 建阳市| 疏勒县| 珲春市| 治多县| 沂南县| 贵阳市| 陈巴尔虎旗| SHOW| 柞水县| 永春县| 枣阳市| 同仁县| 桦川县| 东台市| 磐石市| 中阳县| 司法| 清徐县| 广饶县| 洮南市| 万年县| 湾仔区| 德阳市| 青河县| 石门县| 天长市| 双柏县|