CentOS7 更新與yum庫

輸入"cat /etc/issue", 顯示的是發行版本信息,顯示是centos或其餘。linux

1、更新系統並安裝必備的組件:
yum upgrade or yum update
yum install wget telnet perl perl-devel net-tools kernel-devel 
yum groupinstall "Development tools" -yc++

更新內核與安裝開發工具:centos

[root@localhost ~] yum -y install gcc gcc+ gcc-c++curl

[root@localhost ~] yum install popt-devel openssl openssl-devel libssl-dev libnl-devel popt-devel libnl3-devel net-snmp-devel curl工具

[root@localhost ~] yum -y install kernel kernel-devel開發工具

2、添加源(repository)REMI & EPEL:
yum安裝時,要想安裝比較新的版本軟件,能夠試試這兩個源。都有一些國內鏡像,我添加的EPEL是阿里雲鏡像的。阿里雲

這是適合CentOS 6的源url

cd /tmp && wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm && wget http://mirrors.yun-idc.com/epel/6/x86_64/epel-release-6-8.noarch.rpm && rpm -Uvh remi-release-6.rpm epel-release-6-8.noarch.rpm
真正適合CentOS 7的epel和remi源:
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm(已失效).net

rpm -Uvh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
3、yum安裝桌面ssl

yum group list
# yum groupinstall "GNOME Desktop" "Graphical Administration Tools"

 

停掉seLiunx,selinux主要是用來管理linux命令權限的 # vi /etc/selinux/config SELINUX=disabled 保存執行 # setenforce 0    setenforce 1 設置SELinux 成爲enforcing模式 setenforce 0 設置SELinux 成爲permissive模式

相關文章
相關標籤/搜索