Centos8.0 新特性


Centos8.0 新特性

 

一、參考鏈接:

 

CentOS 8 安裝圖解:  https://linux.cn/article-11438-1.html?pr

RHEL8/CentOS8 網絡、yum源、DNF特征及使用方法:  https://blog.csdn.net/niufenger/article/details/102059946 

【網絡、yum、DNF參考鏈接1】:https://blog.csdn.net/isaac365/article/details/90489499
【參考鏈接2】:https://blog.csdn.net/n88Lpo/article/details/85110419
【參考鏈接3】:https://www.jianshu.com/p/244115c34f08
【√參考鏈接4】https://www.cnblogs.com/RXDXB/p/11660184.html 

二、新特性

這次CentOS8到底還有哪些更新呢?
1、Python 3.6默認Python 環境
2、Node.js 是在 RHEL 最新包含的,其他動態語言更新包括: PHP 7.2, Ruby 2.5, Perl 5.26, SWIG 3.0
3、RHEL 8 提供的數據庫服務包括:MariaDB 10.3, MySQL 8.0, PostgreSQL 10, PostgreSQL 9.6
4、RHEL 8 提供Apache HTTP Server 2.4
5、Squid 版本升級到 4.4

 

三、配置網絡

RHEL8或者CentOS8應該使用nmcli管理網絡
1、手工配置ifcfg,通過NM來生效
2、通過NM自帶工具配ip,比如nmcli
3、手工配置ifcfg,通過傳統network.service來生效
#建議:推薦使用上述第1種網絡配置方法(手工配置ifcfg,通過NM生效),因為這樣既兼容了傳統的ifcfg配置,又能熟悉nmcli。舉例:

1.1 方法一:手工配置ifcfg,使用nmcli來生效新的網絡配置
假設網卡標識符為xxx
]# vi /etc/sysconfig/network-scripts/ifcfg-xxx

使用nmcli重新加載網絡配置
]# nmcli c reload

如果之前沒有xxx的connection,則上一步reload后就已經自動生效了
]# nmcli c up xxx(只開啟指定的網卡)

1.2 方法二:RHEL8和CentOS8完全使用nmcli來管理網絡
查看網卡信息
]# nmcli connection
NAME UUID TYPE DEVICE
ens33 a92fa07b-9b68-4d2b-a2e7-e55146099b1b ethernet ens33
ens36 418da202-9a8c-b73c-e8a1-397e00f3c6b2 ethernet ens36
]# nmcli con xxx
顯示具體的網絡接口信息
]# nmcli connection show xxx
顯示所有活動連接
]# nmcli connection show --active
刪除一個網卡連接
]# nmcli connection delete xxx
給xxx添加一個IP(IPADDR)
]# nmcli connection modify xxx ipv4.addresses 192.168.0.58
給xxx添加一個子網掩碼(NETMASK)
]# nmcli connection modify xxx ipv4.addresses 192.168.0.58/24
IP獲取方式設置成手動(BOOTPROTO=static/none)
]# nmcli connection modify xxx ipv4.method manual
添加一個ipv4
]# nmcli connection modify xxx +ipv4.addresses 192.168.0.59/24
刪除一個ipv4
]# nmcli connection modify xxx -ipv4.addresses 192.168.0.59/24
添加DNS
]# nmcli connection modify xxx ipv4.dns 114.114.114.114
刪除DNS
]# nmcli connection modify xxx -ipv4.dns 114.114.114.114
添加一個網關(GATEWAY)
]# nmcli connection modify xxx ipv4.gateway 192.168.0.2
可一塊寫入:
]# nmcli connection modify xxx ipv4.dns 114.114.114.114 ipv4.gateway 192.168.0.2
添加DNS
]# nmcli connection modify xxx ipv4.dns 114.114.114.114
刪除DNS
]# nmcli connection modify xxx -ipv4.dns 114.114.114.114
添加一個網關(GATEWAY)
]# nmcli connection modify xxx ipv4.gateway 192.168.0.2
可一塊寫入:
]# nmcli connection modify xxx ipv4.dns 114.114.114.114 ipv4.gateway 192.168.0.2
使用nmcli重新回載網絡配置
]# nmcli c reload
如果之前沒有xxx的connection,則上一步reload后就已經自動生效了
]# nmcli c up xxx

1.3 方法三:安裝network.service服務
可以通過yum install network-scripts來安裝傳統的network.service,不過redhat說了,在下一個RHEL的大版本里將徹底廢除,因此不建議使用network.service。
2. RHEL8或者CentOS8修改網卡名稱
2.1 刪除網卡連接,比如xxx
]# nmcli connection delete xxx
2.2 修改內核參數配置文件
]# vi /etc/default/grub
2.3 植入內核
]# grub2-mkconfig -o /boot/grub2/grub.cfg
3.4 重啟
]# reboot
3.5 添加網卡
]# nmcli connection add type ethernet con-name xxx
4. RHEL8或者CentOS8使用nmtui工具配置網絡(圖形化工具)
]# nmtui
5. 總結
CentOS8和RHEL8上一定要習慣使用nmcli來管理網絡,network.service在未來會被正式廢除,沒有學習的必要了。
View Code

 

參考:https://blog.csdn.net/niufenger/article/details/102059946

 

四、安裝軟件包

1,dnf安裝python

# dnf install python27   安裝python2.7.15

# dnf install python36   安裝python3.6.8

2,安裝常用軟件包

#dnf  install  

 

五、安裝vmware workstation

https://www.cnblogs.com/syuee/p/6721720.html

下載VMware-Player-15.5.2-15785246.x86_64.bundle

權限

chown root:root VMware-Player-15.5.2-15785246.x86_64.bundle

安裝

/root/Downloads/VMware-Player-15.5.2-15785246.x86_64.bundle

安裝情況

vmware-modconfig --install-status

圖形界面搜索 vmware

保持kernel版本一致

yum update kernel -y

yum install kernel-devel kernel-headers -y

yum install gcc

 yum install elfutils-libelf-devel

圖形界面搜索 vmware ,完成安裝。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM