Back to distro

See also Fedora

CentOS

CentOS(Community Enterprise Operating System)是Linux发布版之一,它是来自于Red Hat Enterprise Linux依照开放源代码规定发布的源代码所编译而成。由于出自同样的源代码,因此有些要求高度稳定性的服务器以CentOS替代商业版的Red Hat Enterprise Linux使用。两者的不同,在于CentOS并不包含封闭源代码软件。CentOS 对上游代码的主要修改是为了卸载不能自由使用的商标。

1. Released Versions

1.1. List of Current Mirrors

1.1.1. CentOS Product Specifications

Overview on the capabilities and limits of CentOS: http://wiki.centos.org/About/Product

1.1.2. Extra Repositories

sudo yum install epel-release -y

1.1.2.1. nginx-1.6.x

http://wiki.nginx.org/Install

# cat > /etc/yum.repos.d/nginx.repo <<"EOF"
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=0
enabled=1
EOF
# yum install nginx -y
# systemctl start nginx

1.1.2.2. MySQL 5.6

http://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/index.html#repo-qg-yum-installing

http://dev.mysql.com/downloads/repo/yum/

# wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
# yum localinstall mysql-community-release-el7-5.noarch.rpm -y
# yum repolist enabled | grep mysql
# yum install mysql-community-server -y
# systemctl start mysqld

1.2. Surport Plan

与Red Hat Enterprise Linux的生命周期一样,CentOS 5, 6和7将被支持10年,而CentOS 4支持了7年,到12年结束。

CentOS Version

Release Date

Full Updates

Maintenance Updates

3

19 March 2004

20 July 2006

31 October 2010

4

9 March 2005

31 March 2009

29 February 2012

5

12 April 2007

Q1 2014

31 March 2017

6

10 July 2011

Q2 2017

30 November 2020

7

7 July 2014

Q4 2020

30 June 2024

[pink]Old version [yellow]Older version, still supported [green]Latest version

2. System Management

2.1. Yum Package Manager

Yum Package Manager

2.2. Timezone Setting(EDT to CST)

# date
Wed Aug 17 17:54:04 EDT 2010
# rm -f /etc/localtime; date
Wed Aug 17 21:54:42 UTC 2010
# ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime; date
Thu Aug 18 05:54:52 CST 2010

➜  ~ date 
Thu Mar 15 10:08:37 Local time zone must be set
# add export TZ='Asia/Shanghai' to /etc/profile

3. Reference


CategoryLinux

MainWiki: CentOS (last edited 2010-02-21 10:23:55 by twotwo)