|
默认完全安装Slaris10<br>
<br>
# uname -srvmpi<br>
SunOS 5.10 s10_58 sun4u sparc SUNW,Ultra-250<br>
//我的操作环境<br>
<br>
到网站<a target=_blank href=http://www.sunfreeware.com>http://www.sunfreeware.com</a>下载安装好gcc autoconf automake bison ncurses等编译环境软件。<br>
<br>
#PATH=/usr/sbin:/usr/bin:/usr/local/bin/:/usr/ccs/bin<br>
<br>
编译安装HTTPD2<br>
# tar xvf httpd-2.1.3-beta.tar<br>
# cd httpd-2.1.3-beta<br>
# CC=gcc CFLAGS="-O6" CXX=gcc CXXFLAGS="-O6 -felide-constructors -fno-exceptions -fno-rtti"<br>
//上一行命令可以不用,其具体意义我也不是很明白。<br>
# ./configure --enable-so<br>
//DSO模式安装apache<br>
# make<br>
# make install<br>
//编辑配置文件httpd.conf,添加改动如下,启动httpd成功<br>
# vi /usr/local/apache2/conf/httpd.conf<br>
<br>
<br>
QUOTE:<br>
Listen 192.168.12.34:80<br>
User nobody<br>
Group nobody<br>
ServerName 192.168.12.34:80<br>
编译安装Mysql5<br>
#groupadd mysql<br>
#useradd -g mysql mysql<br>
#gunzip < mysql5.tar.gz | tar -xvf -<br>
#cd mysql5<br>
#./configure --prefix=/usr/local/mysql<br>
#make<br>
致命的: libstdc++.so.5: 打开失败: 无此文件或目录<br>
//如果出现类似上述错误警告,按照下列步骤解决<br>
#cp /usr/local/lib/libstdc++.so.5 /usr/lib/libstdc++.so.5<br>
<br>
#make<br>
//没有错误提示就OK<br>
<br>
#make install<br>
#cp support-files/my-medium.cnf /etc/my.cnf<br>
#cd /usr/local/mysql<br>
#bin/mysql_install_db --user=mysql<br>
#chown -R root .<br>
#chown -R mysql var<br>
#chgrp -R mysql .<br>
#bin/mysqld_safe --user=mysql &<br>
# netstat -an|grep .3306<br>*.3306 *.* 0 0 49152 0 LISTEN<br>
# pwd<br>
/usr/local/mysql<br>
<br>
# ./bin/mysql<br>
ld.so.1: ./bin/mysql: 致命的: libncurses.so.5: 打开失败: 无此文件或目录<br>
被杀掉<br>
//如果出现类似上述错误警告,按照下列步骤解决<br>
#cp /usr/local/lib/libncurses.so.5 /usr/lib/libncurses.so.5<br>
<br>
//测试mysql连接正常否?<br>
# /usr/local/mysql/bin/mysql<br>
<br>
<br>
QUOTE:<br>
Welcome to the MySQL monitor. Commands end with ; or \g.<br>
Your MySQL connection id is 1 to server version: 5.0.15-log<br>
<br>
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.<br>
mysql> show databases;<br>
+--------------------+<br>
| Database |<br>
+--------------------+<br>
| information_schema |<br>
| mysql |<br>
| test |<br>
+--------------------+<br>
3 rows in set (0.04 sec)<br>
<br>
mysql> \q<br>
Bye<br>
# <br>
<br>
<br>
编译安装PHP5<br>
#tar -xvf php-NN.tar<br>
#cd php-NN/<br>
#./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql/<br>
#make<br>
#make install<br>
#cp php.ini-dist /usr/local/lib/php.ini<br>
<br>
<br>
#vi /usr/local/apache2/conf/httpd.conf<br>
//编辑httpd.conf添加如下内容,给httpd集成php5模块<br>
<br>
<br>
QUOTE:<br>
#LoadModule php5_module libexec/libphp5.so<br>
LoadModule php5_module modules/libphp5.so<br>AddType application/x-httpd-php .php .phtml<br>AddType application/x-httpd-php-source .phps<br>
#/usr/local/apache2/bin/apachectl start<br>
|
|