加入收藏 | 设为首页 | 会员中心 | 我要投稿 汽车网 (https://www.0577qiche.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

linux网站建立过程

发布时间:2023-08-17 12:43:18 所属栏目:Linux 来源:
导读:linux网站建立步骤: 1、安装Linux,如果以后需要使用双网卡,最好在安装以前插好两块网卡1)安装Linux2)安装完毕后在进入X_window配置第二网卡进入X_window,在turbolinux控制中心 - 网络配置 - 网络界面中添加eth

linux网站建立步骤: 

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,0xfcc0,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

安装oracle客户端 -- 用于web server与db server 不在同一台服务器上

(编辑:汽车网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章