##
#############################################################################################
1、install mysql-5.0.51
shell> groupadd -g 101 mysql
shell> useradd -u 101 -g mysql -M mysql
shell> tar -xvzf mysql.**.tar.gz
shell> cd mysql.**
shell> ./configure --prefix=/usr/local/src/mysql-5.0.51 --localstatedir=/usr/local/src/mysql-5.0.51/data --with-unix-socket-path=/usr/local/src/mysql-5.0.51/tmp/mysql.sock --with-named-curses-libs=/usr/lib/libncursesw.so.5
shell> make
shell> make install
shell> ln -s /usr/local/src/mysql-5.0.51 /usr/local/mysql
shell> cp support-files/mysql.server /etc/rc.d/init.d/mysqld \\开机启动mysql
shell> ln -s /etc/rc.d/init.d/mysqld /etc/rc3.d/S85mysqld \\开机启动mysql
shell> ln -s /etc/rc.d/init.d/mysqld /etc/rc5.d/S85mysqld \\开机启动mysql
shell> cp support-files/my-medium.cnf /etc/my.cnf
shell> cd /usr/local/mysql
shell> bin/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql var
shell> chgrp -R mysql .
shell> bin/mysqld_safe --user=mysql &
shell> vi /etc/profile
PATH="$PATH":/usr/local/mysql/bin \\增加命令路径
export PATH ....(略)....
shell> vi /etc/man.config
MANPATH /usr/local/mysql/man \\增加MAN路径
shell> ps -aux | grep mysql
#############################################################################################
##
#############################################################################################
2、install httpd 2.0.61
shell>tar -xzvf httpd.**.tar.gz
shell>cd httpd.**
shell> ./configure --prefix=/usr/local/src/httpd-2.0.61 --enable-rewrite=shared --enable-speling=shared --enable-module=so --enable-so
shell> make && make install
shell> cd /usr/local
shell> ln -s /usr/local/src/httpd-2.0.61 httpd
shell> cd httpd
shell> ln -s /var/www/html htdocs
shell> ln -s /etc/httpd conf
shell> vi /usr/local/httpd/conf/httpd.conf
#User nobody
#Group #-1
User nobody
Group nobody
shell> cp /usr/local/httpd/bin/httpd /etc/rc.d/init.d/httpd
将apache注册为系统服务
将apachectl命令拷贝至/etc/rc.d/init.d目录下,改名为httpd
使用编辑器打开httpd文件,并在第一行#!/bin/sh下增加两行文字如下
# chkconfig: 35 70 30
# description: Apache
接着注册该服务
chkconfig --add httpd
一切OK了,启动服务
service httpd start
shell> ln -s /etc/rc.d/init.d/httpd /etc/rc3.d/S85httpd \\开机启动httpd
shell> ln -s /etc/rc.d/init.d/httpd /etc/rc5.d/S85httpd \\开机启动httpd
shell& |