接触 solaris : 安装 apache + php + mysql 这是最简单的安装,请扩展成自己需要的 作者信息
=================================
Macro Zeng
http://www.ctohome.com
Before Start
=======================================
install gtar :
install gcc : gcc-2.8.1-sol7-sparc-local
install gzip : gzip-1.3-sol7-sparc-local
install make : make-3.77-sol7-sparc-local
install gd 1.8.3 :
install autoconf-2.13-sol7-sparc-local;
install perl-5.005_02-sol7-sparc-local
gd-1.8.3.tar.gz
zlib-1.1.3-sol7-sparc-local.gz (安装GD库需要)
jpeg-6b-sol7-sparc-local.gz (和GD库相关)
libpng-1.0.2-sol7-sparc-local.gz (安装GD库需要)
xpm-3.4k-sol7-sparc-local.gz (和GD库相关)
Mysql
=======================================
pkgadd -d mysql-3.23.28-gamma-sun-solaris2.7-sparc
(进入解包后的目录)
./scripts/mysql_install_db
PHP
=======================================
cd apache_1.3.14
./configure --prefix=/usr/local/apache_php
/**
* this step need 1 minutes
**/
cd ../php-4.0.3pl1
./configure --prefix=/usr/local/php --with-apache=../apache_1.3.14 --with-mysql=/usr/local/mysql --with-ftp --with-xml --enable-track-vars
/**
* NOTE:You must install gd lib before you use --with-gd
* this step need 2 minutes
**/
make
/**
* If not find libtool,you must redirector the make path to /usr/css/bin
* successful message : Making all in pear
* this step need 5 minutes
**/
make install
/**
* successful message : done
* this step need 1 minutes
* creat the /usr/local/php directory
**/ Apache
=======================================
cd ../apache_1.3.14
./configure --prefix=/usr/local/apache_php --activate-module=src/modules/php4/libphp4.a
/**
* successful message : Creating Makefile in src/...
* this step need 2 minutes
**/
make
/**
* successful message : <=== src/support <=== src
* this step need 1 minutes
**/
make install
/**
* successful message : <=== [config]
* this step need 1 minutes
* creat the /usr/local/apache_php directory
**/ Others
======================================
cd ../php-4.0.3pl1
cp php.ini-dist /usr/local/lib/php.ini
/**
* modify /usr/local/apache_php/conf/httpd.conf
* modify /usr/local/lib/php.ini
**/
=================================
Macro Zeng
http://www.ctohome.com
Before Start
=======================================
install gtar :
install gcc : gcc-2.8.1-sol7-sparc-local
install gzip : gzip-1.3-sol7-sparc-local
install make : make-3.77-sol7-sparc-local
install gd 1.8.3 :
install autoconf-2.13-sol7-sparc-local;
install perl-5.005_02-sol7-sparc-local
gd-1.8.3.tar.gz
zlib-1.1.3-sol7-sparc-local.gz (安装GD库需要)
jpeg-6b-sol7-sparc-local.gz (和GD库相关)
libpng-1.0.2-sol7-sparc-local.gz (安装GD库需要)
xpm-3.4k-sol7-sparc-local.gz (和GD库相关)
Mysql
=======================================
pkgadd -d mysql-3.23.28-gamma-sun-solaris2.7-sparc
(进入解包后的目录)
./scripts/mysql_install_db
PHP
=======================================
cd apache_1.3.14
./configure --prefix=/usr/local/apache_php
/**
* this step need 1 minutes
**/
cd ../php-4.0.3pl1
./configure --prefix=/usr/local/php --with-apache=../apache_1.3.14 --with-mysql=/usr/local/mysql --with-ftp --with-xml --enable-track-vars
/**
* NOTE:You must install gd lib before you use --with-gd
* this step need 2 minutes
**/
make
/**
* If not find libtool,you must redirector the make path to /usr/css/bin
* successful message : Making all in pear
* this step need 5 minutes
**/
make install
/**
* successful message : done
* this step need 1 minutes
* creat the /usr/local/php directory
**/ Apache
=======================================
cd ../apache_1.3.14
./configure --prefix=/usr/local/apache_php --activate-module=src/modules/php4/libphp4.a
/**
* successful message : Creating Makefile in src/...
* this step need 2 minutes
**/
make
/**
* successful message : <=== src/support <=== src
* this step need 1 minutes
**/
make install
/**
* successful message : <=== [config]
* this step need 1 minutes
* creat the /usr/local/apache_php directory
**/ Others
======================================
cd ../php-4.0.3pl1
cp php.ini-dist /usr/local/lib/php.ini
/**
* modify /usr/local/apache_php/conf/httpd.conf
* modify /usr/local/lib/php.ini
**/
http://www.fanqiang.com (2001-04-15 20:10:13)
一、安装 ORACLE 前的准备工作 说明:准备工作主要是增加ORACLE 的用户及组,改变一些系统参数文件。 1、 #vi /etc/passwd 最后一行加 oracle::9722:643:oracle:/ORACLE_HO
http://www.fanqiang.com (2001-04-15 20:10:13)
一、安装 ORACLE 前的准备工作 说明:准备工作主要是增加ORACLE 的用户及组,改变一些系统参数文件。 1、 #vi /etc/passwd 最后一行加 oracle::9722:643:oracle:/ORACLE_HOME:/bin/csh
(增加oracle用户/或者用useradd) 2、 #vi /etc/group 最后一行后加 dba::643:oracle
(增加oracle的组/或者用groupadd) 3、#passwd oracle 敲两次口令,给oracle用户标明密码 4、 在根 / 下 #chown oracle oracle #chgrp dba oracle 5、 #cp .cshrc /oracle 把根下的这两个文件拷贝到 /oracle 路径下 6、 #cd oracle #chown oracle .* 把拷贝过来的隐含文件变成oracle属组 #chgrp dba .* 7、 #vi /etc/services 最后增加两行 orasrv 1525/tcp oracle listener 1521/tcp 8、 #vi /etc/system 在set后增加一段
set shmsys:shminfo_shmmax=4294967295
set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmmni=100
set shmsys:shminfo_shmseg=10
set semsys:seminfo_semmns=200
set semsys:seminfo_semmni=70 9、 #su - oracle 10、 %vi .cshrc 增加一段 set path=( /oracle/bin /usr/sbin /usr/bin /usr/openwin/bin /oracle /etc /usr/ccs/bin . )
setenv ORACLE_HOME /oracle
setenv ORACLE_SID oracle8
#setenv DISPLAY 10.1.1.110:0.0
setenv NLS_LANG AMERICAN_AMERICA.ZHS16CGB231280
#setenv NLS_LANG=SIMPLIFIED CHINESE_CHINA.ZHS16GBK 说明:加#为可选的参数, 10.1.1.110是用PC机运行EXTRAX登录服务器所配置的。 11、#sync;sync;reboot Sun OS重启,使参数生效 二、安装 ORACLE 1 、插入ORACLE 安装光盘
#/etc/init.d/volmgt stop
#/etc/init.d/volmgt start
%volcheck
%df -k 检查有无cdrom的设备 2、 %cd /cdrom/cdrom0 %./runInstaller 出现 ORACLE Universal Installer的安装窗口,按Next键继续 3、Destination框输入将要安装oracle的目录,接着出现弹出窗口要求用root运行/tmp/orainstRoot.sh (它创建oraInventory的安装目录) 接着选择要安装的产品ORACLE8I 8.1.5 4、选typical或custom安装,注意屏幕上端Language按钮,选Chinese语言。 5、接着出现将要安装ORACLE产品的全部信息,如果有不对的地方可以按Perious按钮返回修改。如果确认无误,按Next,ORACLE开始安装。 6、安装成功100%后又回到开始的选项菜单。/oracle/orainst/install.log 安装日志文件最后提示OK 7、弹出Setup Privileges窗口,要求用root运行 #/oracle/root.sh
Are these setting correct (y/n):敲 y Enter the full pathname of the local bin directory (y/n): 敲/bin (此shell 程序在/var/opt/oracle路径下生成一个文件oratab ,并做系统检测) 8、 #vi /var/opt/oracle/oratab 最后一行改 oracle8:/oracle:Y 9、#vi /var/opt/oracle/listener.ora 改 host= (host_name) oraclehome= (/oracle)
例子: listener=(address_list=
(address=(protocol=tcp)
(port=1521)
(host=joe)))
sid_list_listener=(sid_list=
(sid_desc=(sid_name=oracle8)
(oracle_home=/oracle)))
trace_level+listener=admin
startup_wait_time_listener=0
connect_timeout_listener=5 10、#vi /var/opt/oracle/tnsnames.ora 一些连接字符串,分布式通讯时有用 11、#su - oracle %env 看环境变量改变了没有 12、%svrmgrl 唤醒SVRMGR状态
SVRMGR>connect internal
连接打开数据库 SVRMGR>shutdown immediate 先关闭 instances, 数据库
SVRMGR>startup 再打开数据库,当看到 instances startup, database mount, database open的时候,oracle安装成功
SVRMGR>exit 14、 %lsnrctl start 启动listener 如果出错检查环境变量是否设好,及lsnrctl文件的内容和执行属性。