CentOS系統(tǒng)操作下安裝相關(guān)各種軟件
CentOS系統(tǒng)是非常強(qiáng)大經(jīng)常應(yīng)用的系統(tǒng),我就對(duì)CentOS系統(tǒng)深入探討學(xué)習(xí),對(duì)大家概括講述CentOS系統(tǒng)應(yīng)用,希望對(duì)大家有用。雖然CentOS Linux使用了RHEL的源代碼,但是由于這些源代碼是Red Hat公司自由發(fā)布的,因此CentOS Linux的發(fā)布是完全合法的,CentOS Linux的使用者也不會(huì)遇到任何的版權(quán)問(wèn)題。CentOS面向那些需要企業(yè)級(jí)操作系統(tǒng)穩(wěn)定性的人們,而且并不存在認(rèn)證和支持方面的開(kāi)銷。
CentOS系統(tǒng)安裝mysql
[root@mail build]#yum install mysql-server
[root@mail build]#yum install mysql-devel
CentOS系統(tǒng)安裝apache
[root@mail build]#yum install httpd
CentOS系統(tǒng)安裝php
[root@mail build]#yum install php
[root@mail build]#yum install php-mysql
[root@mail build]#yum install php-gd
[root@mail build]#yum install php-imap
[root@mail build]#yum install vsftpd
[root@mail build]#yum install clamav
[root@mail build]#yum install spamassassin
[root@mail build]#/usr/bin/freshclam
CentOS系統(tǒng)設(shè)置apache
默認(rèn):User apache改為User postfix
默認(rèn)Group apache改為Group postfix
默認(rèn)AddDefaultCharset UTF-8改為AddDefaultCharset gb2312
新加入:AddType application/x-httpd-php .phpAddType application/x-httpd-php-source .phps
CentOS系統(tǒng)安裝phpMyAdmin
[root@mail build]#tar –zxf ../src/phpMyAdmin-2.8.0.1.tar.gz
[root@mail build]#mv phpMyAdmin-2.8.0.1 /var/www/html/dbadmin/
[root@mail build]#cp /var/www/html/dbadmin/libraries/config.default.php /var/www/html/dbadmin/dbadmin/libraries/config.inc.php (line 1.)
CentOS系統(tǒng)設(shè)置數(shù)據(jù)庫(kù)[root@mail build]#mysql
Mysql> create datases postfix;
Mysql> use mysql;
Mysql> INSERT INTO user (host,user,password) VALUES('localhost','postfix','');
Mysql> update user set password=password('postfix') where User='postfix';
Mysql> GRANT ALL ON postfix.* TO postfix@localhost IDENTIFIED BY "postfix";
Mysql> exit
[root@mail build] tar –zxf ../src/webmail.tar.gz
[root@mail build] mysql –u root –p postfix < Tmail.sql
增加postfix的用戶和組
[root@mail build] groupadd -g 12345 postfix
[root@mail build] useradd -u 12345 -g 12345 -c postfix -d/dev/null -s/sbin/nologin postfix
[root@mail build] groupadd -g 54321 postdrop
以上介紹CentOS系統(tǒng)安裝相關(guān)系統(tǒng)。
【編輯推薦】