[root@yangwenjun www]# tar xzfv mysql-standard-4.1.14-pc-linux-gnu-i686.tar.gz
[root@yangwenjun www]# cd mysql-standard-4.1.14-pc-linux-gnu-i686
[root@yangwenjun mysql-standard-4.1.14-pc-linux-gnu-i686]# more INSTALL-BINARY
认真的阅读一下这个文档,就会发现MySQL很容易安装
[root@yangwenjun mysql-standard-4.1.14-pc-linux-gnu-i686]# groupadd mysql
[root@yangwenjun mysql-standard-4.1.14-pc-linux-gnu-i686]# useradd -g mysql mysql
[root@yangwenjun www]# mv mysql-standard-4.1.14-pc-linux-gnu-i686 /home/www/mysql
[root@yangwenjun www]# cd /home/www/mysql
[root@yangwenjun mysql]# scripts/mysql_install_db --user=mysql
[root@yangwenjun mysql]# chown -R root .
[root@yangwenjun mysql]# chown -R mysql data
[root@yangwenjun mysql]# chgrp -R mysql .
[root@yangwenjun mysql]# bin/mysqld_safe --user=mysql &
这样MySQL就已经启动了,下面为root用户设置密码:
[root@yangwenjun mysql]# ./bin/mysqladmin -u root password ‘password’
[root@yangwenjun mysql]# ./bin/mysqladmin -u root -h localhost.localdomain password 'pass'
[root@yangwenjun mysql]# ./bin/mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5 to server version: 4.1.14-standard
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
[root@yangwenjun mysql]# cp support-files/mysql.server /etc/init.d/mysql
[root@yangwenjun mysql]# vi /etc/init.d/mysql
修改如下定义使其内容为:
basedir=/home/www/mysql
datadir=/home/www/mysql/data
[root@yangwenjun mysql]# chkconfig --level 345 mysql on
[root@yangwenjun mysql]# service mysql restart
Shutting down MySQL... [ OK ]
Starting MySQL [ OK ]
[root@yangwenjun mysql]#
到这里MySQL就装好了。
3、安装Apache
[root@yangwenjun httpd-2.0.54]# cd /home/bruce/software/www/httpd-2.0.54
[root@yangwenjun httpd-2.0.54]# ./configure --prefix=/home/www/apache --enable-module=most --enable-shared=max --enable-so
[root@yangwenjun httpd-2.0.54]# make
[root@yangwenjun httpd-2.0.54]# make install
[ 本帖最后由 Bruce_yang 于 2006-6-9 16:28 编辑 ]作者: Bruce_yang 时间: 2006-06-09 16:09
写的够详细吧.应该可以上精华吧.作者: HonestQiao 时间: 2006-06-09 18:07
希望楼主继续努力作者: xxjoyjn 时间: 2006-06-09 20:26
支持,LZ辛苦了。作者: shaying110 时间: 2006-06-11 11:39
多谢楼主,互联网时代,开源共享作者: cefiro999 时间: 2006-06-12 15:18
精华!!!作者: jordan123123 时间: 2006-06-12 17:01
hao hao作者: 半粒沙 时间: 2006-07-15 23:18
辛苦了作者: zqlogin 时间: 2006-07-19 17:57
好好看看.作者: Baroms 时间: 2006-07-20 10:25
不知楼主有没有试过PHP能不能用
我装好后PHP不能用
谁知道是怎么回事
回帖说明以下
谢谢!!!作者: Baroms 时间: 2006-07-20 15:05
楼主的workers2.properties文件有错误
[root@localhost conf]# vi workers2.properties
文件内容如下:
[root@localhost conf]# more workers2.properties
[channel.socket:localhost:8009]
port=8009
host=localhost
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
[uri:/*.jsp]
worker=ajp13:localhost:8009
[uri:/examples/*.jsp]
worker=ajp13:localhost:8009
是上面的内容才对
[uri:/*.jsp] [uri:/examples/*.jsp]后面加.jsp作者: Linux@初学者 时间: 2006-07-20 17:00
我按上面的配置后访问主页时提示:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, you@example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.