??????????????????????????
Linux 9 安裝過程。
首先在bios中的啟動順序改為從cd-rom 啟動,同時修改相關(guān)的io-device。設置為auto
格式化選擇自動分區(qū)。
安裝過程中版本選擇選擇服務器版本。
4.root的用戶密碼默認為:123456
完成安裝。
二..jdk安裝
1.到java官方網(wǎng)站去下載linux版本的jdk 1.5(prm)
2.運行相應的jdk rpm 安裝文件,自動安裝到/usr/java/jdk1.5.0_14?? 目錄下面
3設置類路徑:
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
export JAVA_HOME=/usr/java/jdk1.5.0_14
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOMR/bin
在 /etc/profile? 添加上面的代碼即可
重起計算機運行javac即可完成測試: 如果出現(xiàn)javac相關(guān)的信息則說明安裝成功。
二。openfire的安裝以及部署
到openfire官方網(wǎng)站上去下載最新的openfire
關(guān)于openfire? 的部署以及啟動.自動安裝到opt/openfire目錄下面 相應的啟動文件為
/opt/openfire/bin/openfire.sh
?將oracle9驅(qū)動classses12.jar復制到 /opt/openfire/lib目錄下面,同時還需要修改配置文件/opt/openfire/conf/openfire.xml??
?如果是oracle則需要將classses12.jar復制到 /opt/openfire/lib目錄下面,同時還需要修改配置文
件/opt/openfire/conf/openfire.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
?? This file stores bootstrap properties needed by Openfire.
?? Property names must be in the format: "prop.name.is.blah=value"
?? That will be stored as:
?????? <prop>
?????????? <name>
?????????????? <is>
?????????????????? <blah>value</blah>
?????????????? </is>
?????????? </name>
?????? </prop>
?? Most properties are stored in the Openfire database. A
?property viewer and editor is included in the admin console.
-->
<!-- root element, all properties must be under this element -->
<jive>
?<adminConsole>
?? <!-- Disable either port by setting the value to -1 -->
?? <port>9090</port>
?? <securePort>9091</securePort>
?</adminConsole>
?<admin>
?? <!-- Use this section to define users that will have admin privileges. Below,
???????? you will find two ways to specify which users are admins. Admins will
???????? have access to the admin console (only local users) and may have also access
???????? to other functionalities like ad-hoc commands. -->
?? <!-- By default, only the user with the username "admin" can login
??????? to the admin console. Alternatively, you can specify a comma-delimitted
??????? list usernames that should be authorized to login to the admin console
??????? by setting the <authorizedUsernames> field below. -->
?? <!-- <authorizedUsernames></authorizedUsernames> -->
?? <!-- Comma-delimitted list of bare JIDs. The JIDs may belong to local
??????? or remote users. -->
?? <!-- <authorizedJIDs></authorizedJIDs> -->
?</admin>
?<locale>zh_CN</locale>
?<!-- Network settings. By default, Openfire will bind to all network interfaces.
???? Alternatively, you can specify a specific network interfaces that the server
???? will listen on. For example, 127.0.0.1. This setting is generally only useful
????? on multi-homed servers. -->
?<!--
?? <network>
?????? <interface></interface>
?? </network>
?? -->
?<connectionProvider>
?? <className>org.jivesoftware.database.DefaultConnectionProvider</className>
?</connectionProvider>
?<database>
?? <defaultProvider>
???? <driver>oracle.jdbc.driver.OracleDriver</driver>
???? <serverURL>jdbc:oracle:thin:@192.168.1.2:1521:tlink</serverURL>
???? <username>openfire</username>
???? <password>openfire</password>
???? <minConnections>5</minConnections>
???? <maxConnections>15</maxConnections>
???? <connectionTimeout>1.0</connectionTimeout>
?? </defaultProvider>
?</database>
?<setup>true</setup>
</jive>
??? Oracle9i 在Linux9上的安裝過程
添加安裝過程中需要用到的用戶和組,這當中會用到二個用戶一個是root,一個是oracle
#groupadd oinstall
#groupadd dba
#useradd –g oinstall –G dba oracle
#passwd oracle
?(二)新建安裝目錄
#mkdir –p /data/oracle9/product/9.2.0
#chown –R oracle.oinstall /data/oracle9
#mkdir /var/opt/oracle
#chown oracle.dba /var/opt/oracle
#chmod 755 /var/opt/oracle
(三)為了一開機系統(tǒng)就能自動幫你設好這些參數(shù),
也可改動 /etc/sysctl.conf 這個文件,加入以下的語句:
kernel.shmmax = 8589934590
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
注意:如果你的共享內(nèi)存不夠大的話,在安裝的過程中會提示ORA-27123錯誤,到時候你只要把/proc/sys/kernel/shmmax的值調(diào)大就
可以了到于多大就看你的了
(六) oracle對文件的要求:編輯文件:
/etc/security/limits.conf 加入以下語句:
oracle soft nofile 65536
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384
設置oracle的環(huán)境
vi ~/.bash_profile
export LD_ASSUME_KERNEL=2.4.10
export ORACLE_BASE=/data/oracle9
export ORACLE_HOME=/data/oracle9/product/9.2.0
export ORACLE_SID=ora9i
export ORACLE_TERM=xterm
#export NLS_LANG=AMERICAN
export ORACLE_OWNER=oracle
export THREADS_FLAG=native
#export LANG=en_US
export ORA_NLS33=$OROCLE_HOME/ocommon/nls/admin/data
export LD_LIBRARY_PAHT=/data/oracle9/product/9.2.0/lib:/lib:/usr /lib:/usr/local/lib
export PAHT=/data/oracle9/product/9.2.0/bin:$PATH
export PATH=$PATH:$ORACLE_HOME/bin
#su – oracle
$ vi ~/.bash_profile export LD_ASSUME_KERNEL=2.4.1
#export DISPLAY=”192.168.9.205:0.0” (127.0.0.1:0.0)
export ORACLE_BASE=/data/oracle9 export ORACLE_HOME=/data/oracle9/product/9.2.0
export ORACLE_SID=ora9i (數(shù)據(jù)庫全局變量名)
export ORACLE_TERM=xterm (xterm窗口模式 vt100 終端調(diào)試模式)
export NLS_LANG=AMERICAN (設置語言AMERICAN英文)
export ORACLE_OWNER=oracle
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export THREADS_FLAG=native
export LD_LIBRARY_PATH=/data/oracle9/product/9.2.0/lib:/lib:/usr /lib:/usr/local/lib export
PATH=/data/oracle9/product/9.2/bin:$PATH export PATH=$PATH:$ORACLE_HOME/bin
然后注銷再重新登錄就可以,oracle 的環(huán)境就應該生效了 (要用英文環(huán)境)
安裝oracle :
ship_9204_linux_disk1.cpio.gz
ship_9204_linux_disk2.cpio.gz
ship_9204_linux_disk3.cpio.gz
用zcat ship_9204_linux_disk1.cpio.gz|cpio -idmv
zcat ship_9204_linux_disk2.cpio.gz|cpio -idmv
zcat ship_9204_linux_disk3.cpio.gz|cpio -idmv
生成三個文件夾Disk1,Disk2,Disk3;
你也可以用(我用的是這個)
cpio -idmv < ship_9204_linux_disk1.cpio
cpio -idmv < ship_9204_linux_disk2.cpio
cpio -idmv < ship_9204_linux_disk3.cpio
在當前目錄上會產(chǎn)生三個目錄:
Disk1,Disk2,Disk3
#cd Disk1
#./runInstaller 出現(xiàn)圖形安裝界面。
按照提示完成安裝即可。
安裝過程中可能遇到的問題
1.遇到亂碼時首先運行 export LANG=en_US
2.創(chuàng)見一個指向的鏈接:
ln -s /data/oracle9/product/9.2.0/oracle.swd.jre/bin/i386/native_threads/java
/data/oracle9/product/9.2.0/oracle.swd.jre/bin/i386/native_threads/jre
配置監(jiān)聽器服務命名還有目錄服務 net config assistent
?/data/oracle9/product/9.2.0/bin/netca
啟動oracle監(jiān)聽器.
/data/oracle9/product/9.2.0/bin/lsnrctl start TLINK
配置啟動oracle服務器
?/data/oracle9/product/9.2.0/bin/dbca
在gui模式下啟動oracle
linux 常見命令:
neat? =====redhat-config-network 配置網(wǎng)絡
redhat-config-users 配置用戶
?rpm -Uvv openfire.rpm --force?? 強制更新軟件
rpm -ql package 列出該軟件的所有文件所在的目錄???? | less? 分頁顯示結(jié)果
rpm -qa 列出所有已安裝的包
rpm -qi package 列出包信息
?/etc/rc.d/init.d/httpd start
啟動 apache:
/etc/rc.d/init.d/httpd stop
關(guān)閉apache
? 關(guān)于ssh 因為在linux下是內(nèi)置的服務,所以只要啟動服務即可。讓在window下用ssh的客戶端即可進行操作
?
?
大盤預測
國富論
posted on 2008-02-18 11:48
華夢行 閱讀(574)
評論(0) 編輯 收藏