`
yinwmac
  • 浏览: 2393 次
  • 性别: Icon_minigender_1
  • 来自: 拉普兰德
社区版块
存档分类
最新评论

Linux下U盘启动盘制作、Oracle10g、Telnet、Jdk1.6、Tomcat、Nginx安装(1)

 
阅读更多



     本人机器Tinkpad X201 PL4,商务笔记本没有光驱,装系统都用U盘安装,以下属于本人实际安装步骤(双系统),拿出来共享下,曾经经历过无数次失败,无数次系统崩溃,最严重一次导致硬盘崩溃,积累多年的项目资料、照片全部丢失。

    有句话说的好:如果你知道去哪里,全世界都会为你让路。最终成功在Linux下部署了一套开发环境。
一、U盘启动盘制作。
1.download software 【UltraISO】。
2.download OS file 【[Linux.5.4].rhel-server-5.4-i386-dvd.iso】。
3.copy 【boot.iso】 from iso file,detail directory【/images/boot.iso】。
4.open boot.iso by UltraISO。
5.refrence operation by images。

 

 

PS:写入硬盘映像时会自动读出U盘,另外请选择USB-HDD+方式。

6.write after the success ,copy OS file to U disk。

7.reboot the computer,set the first start item is usb startup。

8.in the installation process ,please select 【 Hard disk--> sdb】。

 

二、安装Oracle。

zip:unzip **.zip

tar.gz:tar -zxvf **.tar.gz

bin:make **.bin

rpm:rpm -i **.rpm

edit file:vi fileName --> insert

copy contents:shift + insert

save file:esc-->:wq

don't save:esc-->q!

基础命令就列这几个,其他的自己查吧,生于忧患而死于安乐。

 

1.download oracle 【10201_database_linux32.zip】。

2.check package。

rpm -q gcc make binutils openmotif

what if missing package you need installed。

3.edit sysctl.conf。

vi /etc/sysctl.conf

 add the following contents in the last line

***********************************************************************

kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144

***********************************************************************

4.operation command let the kernel parameters effect。

su - root

sysctl -p

5.edit limits.conf。

vi /etc/security/limits.conf

add the following contents in the last line

***********************************************************************

soft nproc 2047
hard nproc 16384
soft nofile 1024
hard nofile 65536

***********************************************************************

6.edit login file。

vi /etc/pam.d/login

add the following contents in the last line

***********************************************************************

session required /lib/security/pam_limits.so

***********************************************************************

7.close selinux。

vi /etc/selinux/confg

set secure linux disabled

SELINUX=disabled

8.edit hosts file。

vi /etc/hosts

delete 127.0.0.1 line

ip address    computeName    localhost

9.edit OS version。

vi /etc/redhat-release

update 5.4 to other (4 or other)

10.addgroup and user。

groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
passwd oracle

11.create install directory and authorized。

mkdir -p /u01/app/oracle/product/10.2.0/db_1

chown -R oracle.oinstall /u01

12.edit【.bash_profile】 file in the oracle user base directory。

cd /home/oracle

vi .bash_profile

add following contents in the last line。

************************************************************************

# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID=orcl; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=$PATH:$ORACLE_HOME/bin; export PATH
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JREORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH

if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi

************************************************************************

13.extract installation file to /tmp and authorized。

cp 10201_database_linux32.zip /tmp

cd /tmp

unzip 10201_database_linux32.zip

chmod -R 775 /tmp/database

14.install Oracle 10g。

1>.open a teminal with root and execute following command

xhost +

2>.open another teminal with oracle user and execute following command

export LANG=en_US

3>.start install

cd /tmp/database

./runinstaller

PS:安装到最后处理sqlplus时,系统会要求用root账户执行两个脚本,这时可以在刚才的第一个终端(root)上按提示找到要执行的脚本然后执行后继续操作,如果安装失败,请检查是否开启1521端口。

  • 大小: 55.2 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics