標籤彙整為 'Centos'

CentOS下用yum 安裝 php+mysql+apache

 
1. 安裝Apahce, PHP, Mysql, 以及php連接mysql庫組件。
yum -y install httpd php mysql mysql-server php-mysql

2. 配置開機啓動服務
 /sbin/chkconfig httpd on             [設置apache服務器httpd服務開機啓動]
 /sbin/chkconfig –add mysqld         [在服務清單中添加mysql服務]
 /sbin/chkconfig mysqld on             [設置mysql服務開機啓動]

 /sbin/service httpd start            [啓動httpd服務,與開機啓動無關]
 /sbin/service mysqld start           [啓動mysql服務,與開機無關]

3.設置mysql數據庫root帳號密碼。
mysqladmin -u root password ‘newpassword’           [引號內填密碼]

4. 讓mysql數據庫更安全
mysql -u root -p
mysql> DROP DATABASE test;                            [刪除test數據庫]
mysql> DELETE FROM mysql.user WHERE user = ”;        [刪除匿名帳戶]
mysql> FLUSH PRIVILEGES;                              [重載權限]

5. 按照以上的安裝方式, 配置齣來的默認站點目錄為/var/www/html/
新建一個php腳本:
<?php
   phpinfo();
?>
6. [...]

Centos 5.1 安裝 mogileFS

To install a tracker:

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2.noarch.rpm

yum -y install mogilefsd perl-MogileFS-Client perl-MogileFS-Utils

To install a storage node:

rpm -Uvh ttp://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2.noarch.rpm

yum -y install mogstored mogstored-backend-perlbal
mogstored-backend-lighttpd mogstored-backend-apache perl-MogileFS-Client
perl-MogileFS-Utils
分享此文章

Centos 5.1 Install ATTANSIC L1 Gigabit Ethernet 10/100/1000 driver

The Attansic L1 is included as the onboard network device for the following Asus mainboards:

M2N8-VMX

M2V

M3A

P2-M2A590G (barebones)

P5B-E

P5B-MX/WIFI-AP

P5B-VM SE

P5E-VM HDMI

P5K

P5KC

P5KPL-VM

P5K-SE

P5K-V

P5L-MX

P5LD2-VM

P5L-VM 1394

F3SC (laptop)

F3SV (laptop)

Quick install guide
1. Read (and follow ) this tutorial in order to add the rpmforge (also known as dag ) repository to your list. To cut a long story short:
a) Download the [...]