服务器之家:专注于服务器技术及软件下载分享
分类导航

Linux|Centos|Ubuntu|系统进程|Fedora|注册表|Bios|Solaris|Windows7|Windows10|Windows11|windows server|

服务器之家 - 服务器系统 - Centos - Centos5.2配置LAMP与Centos5.3配置LAMP(13)

Centos5.2配置LAMP与Centos5.3配置LAMP(13)

2019-10-11 14:12Centos教程网 Centos

chown -R root:mysql . chown -R mysql /data/mysql/data cp share/mysql/my-huge.cnf /etc/my.cnf cp share/mysql/mysql.server /etc/rc.d/init.d/mysqld chmod 755 /etc/rc.d/init.d/mysqld chkconfig add mysqld


chown -R root:mysql . 
chown -R mysql /data/mysql/data 
cp share/mysql/my-huge.cnf /etc/my.cnf 
cp share/mysql/mysql.server /etc/rc.d/init.d/mysqld 
chmod 755 /etc/rc.d/init.d/mysqld 
chkconfig –add mysqld 
/etc/rc.d/init.d/mysqld start 

cd /usr/local/mysql/bin 
for i in *; do ln -s /usr/local/mysql/bin/$i /usr/bin/$i; done 

cd /usr/local/src 

mysqladmin -u root password chenshake 


#安装Apache 

tar zxvf httpd-2.2.8.tar.gz 
cd httpd-2.2.8 
./configure \ 
“–prefix=/usr/local/apache2″ \ 
“–with-included-apr” \ 
“–enable-so” \ 
“–enable-deflate=shared” \ 
“–enable-expires=shared” \ 

延伸 · 阅读

精彩推荐