歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Unix知識 >> 關於Unix >> linux網站建立步驟

linux網站建立步驟

日期:2017/3/6 15:15:24   编辑:關於Unix
1、安裝Linux,如果以後需要使用雙網卡,最好在安裝以前插好兩塊網卡 1)安裝Linux 2)安裝完畢後在進入X_window配置第二網卡 進入X_window,在turbo linux 控制中心- 網絡 配置-網絡 界面中添加eth1 用ifconfig察看eth0、eth1的中斷是否相同,不同的話表示 1、安裝Linux,如果以後需要使用雙網卡,最好在安裝以前插好兩塊網卡
1)安裝Linux
2)安裝完畢後在進入X_window配置第二網卡
進入X_window,在turbolinux控制中心 - 網絡配置 - 網絡界面中添加eth1
用 ifconfig察看eth0、eth1的中斷是否相同,不同的話表示安裝成功(也可以用拔掉網線
的方法檢查是否安裝成功)
[安裝] 如何讓內核檢測到兩塊網卡經常碰到這類問題,其實非常簡單:
當你有兩塊網卡時,在lilo.conf裡加上
append = "ether=0,0,eth1"
當你插了三塊, 則為:
append = "ether=0,0,eth1 ether=0,0,eth2"
舉例如下:
boot = /dev/hda
#compact # faster, but won“t work on all systems.
delay = 50
vga = normal # force sane state
append= "ether=0,0,eth1"
# ramdisk = 0 # paranoia setting
# End LILO global section
# Linux bootable partition config begins
image = /zImage
root = /dev/hda1
label = linux
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends
這是不知道網卡irq和iobase時的做法(尤其是PCI網卡時,象3c590...)
當知道網卡irq和iobase時,還是指定的好:
例如:兩塊3c590:
append="ether=9,0xfce0,eth0 ether=5,0xfclearcase/" target="_blank" >cc0,eth1"
注:如果已經編譯成模塊的話,應該在/etc/rc.d/rc.modules(在TurboLinux裡
是/etc/conf.modules)
加上類似的一行:
/sbin/modprobe ne io=io1,io2
2、Linux安裝完畢後,創建用戶及組
groupadd dba(組名)
groudadd oinstall(組名)
useradd oracle(用戶名)
進入etc目錄,編輯group
加入 oinstall(組):x:501 racle(用戶)
dba(組):x:502racle(用戶)
3、配置環境參數
方法1:用root權限編輯/root/.bash_profile
將編輯完成的.bash_profile拷貝到 /home/oracle下
chown oracle:dba /home/oracle/.
方法2:用root權限編輯/root/.bashrc
加入umask 022
進入 /etc
編輯profile
在./root/.bash_profile 、/etc/profile編輯內容如下:
PATH=$PATH:$HOME/bin
ENV=$HOME/.bashrc
USERNAME=""
umask 022
NLS_LANG="simplified chinese".zhs16gbk
ORACLE_HOME=/u1/oracle/8i
ORACLE_BASE=/u1/oracle
ORACLE_SID=orcl
LD_LIBRARY_PATH=$ORACLE_HOME/lib
PATH=$PATH:$ORACLE_HOME/bin:.
DISPLAY=127.0.0.1:O.O
export USERNAME ENV PATH
export ORACLE_HOME ORACLE_BASE ORACLE_SID
export LD_LIBRARY_PATH NLS_LANG
export DISPLAY
4、安裝oracle8.1.6
1)拷貝oracle8.1.6文件
<1> 用root權限掛起光驅
方法1:mount /dev/cdrom /mnt
方法2:mount -t iso9660 /mnt
<2>拷貝oracle文件
cd /mnt
方法1:cp oracle /oracle.tar(以oracle用戶拷貝oracle文件到 /目錄)
方法2:cp oracle.tar /u2/.
2)解開oracle文件
tar xvf oracle.tar(展開打包文件)
tar xzvf oracle.tar.gz(解壓縮並展開打包文件)
3)安裝oracle8.1.6
給u1、u2以oracle:dba的權限
chown -R oracle:dba /u1
chown -R oracle:dba /u2
<1>安裝oracle客戶端 -- 用於web server與db server 不在同一台服務器
(1)安裝oracle
用oracle用戶登陸
進入X_window
啟動終端
cd /Oracle8iR2
運行./runInstaller開始安裝
Welcome:
按next
File Locations:
按next
UNIX Group Name:
輸入dba,按next
出錯,提示要以root權限運行/u1/oracle/8i/orainstRoot.sh
CTRL+ALT+F2,打開一個新的控制台(字符窗口)
以root登錄
[root@wapdb /root]# cd /u1/oracle/8i/
這時/u1/oracle/8i/目錄下有一個文件orainstRoot.sh,運行它
[root@wapdb /8i]# ./orainstRoot.sh
CTRL+ALT+F7,回到安裝界面(圖形窗口)
按Retry按鈕,就可以繼續安裝了,
Available Products:
選Oracle8i Enterprise Edition 8.1.6.1.0,選擇安裝client(客戶端)按next
(該步驟適合與數據庫服務器與WEB服務器安裝在不同機器上)

新聞3頁,當前在第11 2 3

Copyright © Linux教程網 All Rights Reserved