46.
Enter password:
47.
Welcome to the MySQL monitor. Commands end with ; or /g.
48.
Your MySQL connection id is 2
49.
Server version: 5.1.50 Source distribution
50.
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights
reserved.
51.
This software comes with ABSOLUTELY NO WARRANTY. This is f
ree software,
52.
and you are welcome to modify and redistribute it under the G
PL v2 license
53.
Type 'help;' or '/h' for help. Type '/c' to clear the current input s
tatement.
54.
mysql>
55.
2.3.使用官方提供的启动脚本并添加开机启动
56.
[root@RHEL mysql]# cp share/mysql/mysql.server /etc/init.d/
mysqld
57.
[root@RHEL mysql]# /etc/init.d/mysqld stop
58.
Shutting down MySQL100909 20:06:48 mysqld_safe mysqld fr
om pid file /usr/local/mysql/var/RHEL.pid ended
59.
[确定]
60.
[1]+ Done bin/mysqld_safe --user=mysql
61.
[root@RHEL mysql]# /etc/init.d/mysqld start
62.
Starting MySQL. [确定]
63.
[root@RHEL mysql]# /sbin/chkconfig --add mysqld
64.
[root@RHEL mysql]# /sbin/chkconfig mysqld on
1.
3.1.编译安装
2.
[root@RHEL mysql]# cd /usr/local/src/
3.
[root@RHEL src]# tar -xzvf httpd-2.2.16.tar.gz
4.
[root@RHEL src]# cd httpd-2.2.16
5.
[root@RHEL httpd-2.2.16]# more INSTALL
6.
Quick Start - Unix
7.
------------------
8.
For complete installation documentation, see [ht]docs/manua
l/install.html or
9.
http://httpd.apache.org/docs/2.2/install.html
10.
$ ./configure --prefix=PREFIX
11.
$ make
12.
$ make install