Weblogic11g 安装——Linux下无Weblogic安装图形界面(1)
注意:此次安装,没做server、ip 、系统规划
目的:学习weblogic11g 在linux下 无图形安装的过程
java各版本官网下载地址;http://www.Oracle.com/technetwork/java/javase/archive-139210.html
一.weblogic安装系统环境
准备安装在/home 目录下,发现/ 目录 空间不是特别多,扩展下 / 目录lv
[root@rac1 ~]# df -h
文件系统
容量 已用 可用 已用%% 挂载点
/dev/mapper/vg_rac1-lv_root
7.7G
4.1G 3.3G 57% /
tmpfs
978M 200M 778M 21%
/dev/shm
/dev/sda1 485M
51M 410M 11% /boot
/dev/mapper/vg_rac1-lv_oracle
18G 10G 6.5G 61%
/oracle
[root@rac1 ~]# lvextend -L +1024M
/dev/mapper/vg_rac1-lv_root
Extending logical volume lv_root to 8.81
GiB
Logical volume lv_root successfully resized
[root@rac1 ~]#
resize2fs /dev/mapper/vg_rac1-lv_root
resize2fs 1.41.12
(17-May-2010)
Filesystem at /dev/mapper/vg_rac1-lv_root is mounted on /;
on-line resizing required
old desc_blocks = 1, new_desc_blocks =
1
Performing an on-line resize of /dev/mapper/vg_rac1-lv_root to 2310144 (4k)
blocks.
The filesystem on /dev/mapper/vg_rac1-lv_root is now 2310144 blocks
long.
[root@rac1 ~]# df -h
文件系统
容量 已用 可用 已用%% 挂载点
/dev/mapper/vg_rac1-lv_root
8.7G
4.1G 4.2G 50% /
tmpfs
978M 200M 778M 21%
/dev/shm
/dev/sda1 485M
51M 410M 11% /boot
/dev/mapper/vg_rac1-lv_oracle
18G 10G 6.5G 61% /oracle
二.查看系统用户、创建weblogic用户
[root@rac1 ~]# cat
/etc/passwd
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
ftp:x:14:50:FTP
User:/var/ftp:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
dbus:x:81:81:System
message bus:/:/sbin/nologin
rpc:x:32:32:Rpcbind
Daemon:/var/cache/rpcbind:/sbin/nologin
usbmuxd:x:113:113:usbmuxd
user:/:/sbin/nologin
avahi-autoipd:x:170:170:Avahi IPv4LL
Stack:/var/lib/avahi-autoipd:/sbin/nologin
oprofile:x:16:16:Special user
account to be used by
OProfile:/home/oprofile:/sbin/nologin
vcsa:x:69:69:virtual console memory
owner:/dev:/sbin/nologin
rtkit:x:499:497:RealtimeKit:/proc:/sbin/nologin
abrt:x:173:173::/etc/abrt:/sbin/nologin
saslauth:x:498:496:"Saslauthd
user":/var/empty/saslauth:/sbin/nologin
postfix:x:89:89::/var/spool/postfix:/sbin/nologin
qpidd:x:497:495:Owner
of Qpidd
Daemons:/var/lib/qpidd:/sbin/nologin
ntp:x:38:38::/etc/ntp:/sbin/nologin
apache:x:48:48:Apache:/var/www:/sbin/nologin
avahi:x:70:70:Avahi
mDNS/DNS-SD Stack:/var/run/avahi-daemon:/sbin/nologin
rpcuser:x:29:29:RPC
Service User:/var/lib/nfs:/sbin/nologin
nfsnobody:x:65534:65534:Anonymous NFS
User:/var/lib/nfs:/sbin/nologin
hsqldb:x:96:96::/var/lib/hsqldb:/sbin/nologin
haldaemon:x:68:68:HAL
daemon:/:/sbin/nologin
pulse:x:496:494:PulseAudio System
Daemon:/var/run/pulse:/sbin/nologin
gdm:x:42:42::/var/lib/gdm:/sbin/nologin
qemu:x:107:107:qemu
user:/:/sbin/nologin
sshd:x:74:74:Privilege-separated
SSH:/var/empty/sshd:/sbin/nologin
tcpdump:x:72:72::/:/sbin/nologin
grid:x:601:507::/home/grid:/bin/bash
oracle:x:600:507::/home/oracle:/bin/bash
[root@rac1 ~]# groupadd -g 700 bea
//创建weblogic用户,bea组
[root@rac1 ~]# useradd -u 700 -g 700 weblogic
[root@rac# cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
ftp:x:14:50:FTP
User:/var/ftp:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
dbus:x:81:81:System
message bus:/:/sbin/nologin
rpc:x:32:32:Rpcbind
Daemon:/var/cache/rpcbind:/sbin/nologin
usbmuxd:x:113:113:usbmuxd
user:/:/sbin/nologin
avahi-autoipd:x:170:170:Avahi IPv4LL
Stack:/var/lib/avahi-autoipd:/sbin/nologin
oprofile:x:16:16:Special user
account to be used by
OProfile:/home/oprofile:/sbin/nologin
vcsa:x:69:69:virtual console memory
owner:/dev:/sbin/nologin
rtkit:x:499:497:RealtimeKit:/proc:/sbin/nologin
abrt:x:173:173::/etc/abrt:/sbin/nologin
saslauth:x:498:496:"Saslauthd
user":/var/empty/saslauth:/sbin/nologin
postfix:x:89:89::/var/spool/postfix:/sbin/nologin
qpidd:x:497:495:Owner
of Qpidd
Daemons:/var/lib/qpidd:/sbin/nologin
ntp:x:38:38::/etc/ntp:/sbin/nologin
apache:x:48:48:Apache:/var/www:/sbin/nologin
avahi:x:70:70:Avahi
mDNS/DNS-SD Stack:/var/run/avahi-daemon:/sbin/nologin
rpcuser:x:29:29:RPC
Service User:/var/lib/nfs:/sbin/nologin
nfsnobody:x:65534:65534:Anonymous NFS
User:/var/lib/nfs:/sbin/nologin
hsqldb:x:96:96::/var/lib/hsqldb:/sbin/nologin
haldaemon:x:68:68:HAL
daemon:/:/sbin/nologin
pulse:x:496:494:PulseAudio System
Daemon:/var/run/pulse:/sbin/nologin
gdm:x:42:42::/var/lib/gdm:/sbin/nologin
qemu:x:107:107:qemu
user:/:/sbin/nologin
sshd:x:74:74:Privilege-separated
SSH:/var/empty/sshd:/sbin/nologin
tcpdump:x:72:72::/:/sbin/nologin
grid:x:601:507::/home/grid:/bin/bash
oracle:x:600:507::/home/oracle:/bin/bash
weblogic:x:700:700::/home/weblogic:/bin/bash
[root@rac1 ~]# passwd weblogic
//设置weblogic 用户密码
更改用户 weblogic 的密码 。
新的 密码:
无效的密码: 它基于字典单词
重新输入新的
密码:
passwd: 所有的身份验证令牌已经成功更新。
[root@rac1 ~]#
[root@rac1 ~]#
su - weblogic
[weblogic@rac1 ~]$ ls
[weblogic@rac1 ~]$
pwd
/home/weblogic
[weblogic@rac1 ~]$ ls
jdk-6u30-linux-x64.bin
jdk-6u30-linux-x64-rpm.bin wls1033_generic.jar
[weblogic@rac1 ~]$
ll
总用量 1105980
-rw-r--r-- 1 weblogic bea 85570714 3月 29 2012
jdk-6u30-linux-x64.bin
-rw-r--r-- 1 weblogic bea 81053867 3月 29
2012 jdk-6u30-linux-x64-rpm.bin
-rw-r--r-- 1 weblogic bea 965886589 11月 28
2012 wls1033_generic.jar
[weblogic@rac1 ~]$ chmod u+x
jdk-6u30-linux-x64.bin
[weblogic@rac1 ~]$ ./jdk-6u30-linux-x64.bin
weblogic@rac1 ~]$ java -version
java version "1.6.0_20"
OpenJDK Runtime
Environment (IcedTea6 1.9.7) (rhel-1.39.1.9.7.el6-x86_64)
OpenJDK 64-Bit
Server VM (build 19.0-b09, mixed mode)
[weblogic@rac1 ~]$ cd
/usr
[weblogic@rac1 usr]$ ls
bin etc games include
lib lib64 libexec local sbin share src
tmp
[weblogic@rac1 usr]$ find /-name java
find: “/-name”:
没有那个文件或目录
find: “java”: 没有那个文件或目录
[weblogic@rac1 usr]$
exit
logout
[root@rac1 ~]# find / -name
java
/oracle/ora11g/crs_home/jdk/jre/bin/java
/oracle/ora11g/crs_home/jdk/bin/java
/oracle/ora11g/db_base/product/11.2.0/db_1/xdk/doc/java
/oracle/ora11g/db_base/product/11.2.0/db_1/sqldeveloper/lib/java
/oracle/ora11g/db_base/product/11.2.0/db_1/jdk/jre/bin/java
/oracle/ora11g/db_base/product/11.2.0/db_1/jdk/bin/java
/oracle/ora11g/db_base/product/11.2.0/db_1/owb/wf/java
/oracle/ora11g/db_base/product/11.2.0/db_1/lib/java
/etc/java
/etc/alternatives/java
/etc/pki/java
/usr/share/swig/1.3.40/java
/usr/share/java
/usr/share/doc/db4-devel-4.7.25/java
/usr/share/doc/db4-devel-4.7.25/ref/java
/usr/share/javadoc/java
/usr/share/javadoc/java-1.6.0-openjdk/jre/api/plugin/dom/com/sun/java
/usr/share/javadoc/java-1.6.0-openjdk/api/java
/usr/share/javadoc/java-1.6.0-openjdk/api/org/omg/stub/java
/usr/lib/jvm-exports/java
/usr/lib/java
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/bin/java
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/bin/java
/usr/lib/jvm/java
/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre/bin/java
/usr/lib64/java
/usr/bin/java
/var/lib/alternatives/java
/home/weblogic/jdk1.6.0_30/jre/bin/java
/home/weblogic/jdk1.6.0_30/db/demo/programs/vtis/java
/home/weblogic/jdk1.6.0_30/db/demo/programs/scores/java
/home/weblogic/jdk1.6.0_30/bin/java
[root@rac1
~]# su - weblogic
[weblogic@rac1 ~]$ ls
jdk1.6.0_30
jdk-6u30-linux-x64.bin jdk-6u30-linux-x64-rpm.bin
wls1033_generic.jar
[weblogic@rac1 ~]$ ll
总用量 1105984
drwxr-xr-x 10
weblogic bea 4096 8月 16 04:16
jdk1.6.0_30
-rwxr--r-- 1 weblogic bea 85570714 3月 29 2012
jdk-6u30-linux-x64.bin
-rw-r--r-- 1 weblogic bea 81053867
3月 29 2012 jdk-6u30-linux-x64-rpm.bin
-rw-r--r-- 1 weblogic bea
965886589 11月 28 2012 wls1033_generic.jar
[weblogic@rac1 ~]$ chmod u+x
wls1033_generic.jar
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。