-
cd /etc/sysconfig/network-scripts
-
ll
-
vi?ifcfg-ens33(每個(gè)人的文件名都不一樣,要自己看文件名是什么)
-
#確保ONBOOT=yes
#ONBOOT的意思是系統(tǒng)在啟動(dòng)的時(shí)候是否激活網(wǎng)卡,只有激活網(wǎng)卡,才能進(jìn)行網(wǎng)絡(luò)通訊
#如果文件沒(méi)有下面的這些字段,就自己增加
?
BOOTPROTO=static
IPADDR=192.168.xxx.xxx ?#你自己想要的ip地址
NETMASK=255.255.255.0 ? #子網(wǎng)掩碼
ONBOOT=yes -
systemctl restart network命令重啟網(wǎng)絡(luò) 就ok了
1. 備份默認(rèn)的yum
# mv /etc/yum.repos.d /etc/yum.repos.d.backup
?
2. 設(shè)置新的yum目錄
# mkdir /etc/yum.repos.d
?
3. 下載阿里yum配置到該目錄中,用wget,進(jìn)行下載,
# yum install -y wget
# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
?
4. 重建緩存
yum clean all
yum makecache
?
5. 升級(jí)所有包
yum upgrade -y
yum -y update:升級(jí)所有包同時(shí),也升級(jí)軟件和系統(tǒng)內(nèi)核;(時(shí)間比較久)
yum -y upgrade:只升級(jí)所有包,不升級(jí)軟件和系統(tǒng)內(nèi)核,軟件和內(nèi)核保持原樣。?文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-418199.html
問(wèn)題
./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre= option.
答案
yum -y install pcre-devel
?文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-418199.html
到了這里,關(guān)于linux虛擬IP/yum Invalid version flag: if 錯(cuò)誤//configure:錯(cuò)誤:HTTP重寫(xiě)模塊需要PCRE庫(kù)。的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!