Tuesday, March 3, 2020

Weblogic 12.2.1.4 installation

OS: CentoOS 7
ssh -X root@192.168.2.202
Install JDK
rpm -ihv jdk-8u241-linux-x64.rpm

java -version
java version "1.8.0_241"
Java(TM) SE Runtime Environment (build 1.8.0_241-b07)
Java HotSpot(TM) 64-Bit Server VM (build 25.241-b07, mixed mode)

mkdir /u01
groupadd oinstall
usermod -g oinstall oracle
chown -R oracle:oinstall /u01
chmod -R 775 /u01
chmod g+s /u01

su - oracle
export DISPLAY=192.168.2.163:0.0

java -jar fmw_12.2.1.4.0_wls.jar









Automatically launch create domain






If you want to create domain with all options:
/u01/oracle/Oracle/Middleware/Oracle_Home/oracle_common/common/bin/config.sh

Check ports
netstat -an | grep LIST
....
192.168.2.202:7001
....

Check firewall rule
[oracle@centos7 ~]$ sudo firewall-cmd --list-all
public (active)
  target: default
  icmp-block-inversion: no
  interfaces: eth0
  sources:
  services: dhcpv6-client ssh
  ports:
  protocols:
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:

[oracle@centos7 ~]$ sudo firewall-cmd --get-default-zone
public

Add port 7001
[oracle@centos7 ~]$ sudo firewall-cmd --zone=public --add-port=7001/tcp --permanent
success

[oracle@centos7 ~]$ sudo firewall-cmd --reload
success

[oracle@centos7 ~]$ sudo firewall-cmd --list-all
public (active)
  target: default
  icmp-block-inversion: no
  interfaces: eth0
  sources:
  services: dhcpv6-client ssh
  ports: 7001/tcp
  protocols:
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:

Check console
User: weblogic
Pass: xxxxxxxx


Start Servies
/u01/oracle/Oracle/Middleware/Oracle_Home/user_projects/domains/wl_server
nohup ./startWebLogic.sh &

Console


Node Manager
/u01/oracle/Oracle/Middleware/Oracle_Home/user_projects/domains/wl_server/bin
nohup ./startNodeManager.sh &

Check Open Ports
[oracle@centos7 bin]$ netstat -an | grep LIST
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
tcp6       0      0 127.0.0.1:1527          :::*                    LISTEN
tcp6       0      0 192.168.2.202:7001      :::*                    LISTEN
tcp6       0      0 ::1:7001                :::*                    LISTEN
tcp6       0      0 127.0.0.1:7001          :::*                    LISTEN
tcp6       0      0 ::1:25                  :::*                    LISTEN
tcp6       0      0 127.0.0.1:5556          :::*                    LISTEN
tcp6       0      0 :::22                   :::*                    LISTEN


Monday, March 2, 2020

X11

X11 is a network protocol designed for Unix and similar operating systems to enable remote graphical access to applications. 
The original X windowing system was announced in 1984 and developed at MIT.
A machine running an X windowing system can launch a program on a remote computer. 
All the CPU processing happens on the remote computer but the display of the application appears on the local machine.


Now days X11 is useful for install software in servers from your computer.
For example to install Oracle Weblogic or Oracle DB in CentOS/RedHat (Server)

yum install xorg-x11-xauth
yum install xorg-x11-utils
yum install xorg-x11-server-utils
yum install xorg-x11-apps

Depending on your client
  • Windows
Use Putty and select Enable X11 forwarding



  • Mac OS
Install XQuartz  (https://www.xquartz.org/)
Modify /etc/ssh/ssh_config
ForwardX11 yes

Configure XQuartz 





Open Terminal
Connect to Server ssh -X root@x.x.x.x

Tell to X11 where is the client
export DISPLAY=x.x.x.x:0.0

Run command, example

xclock

  • Ubuntu
sudo apt-get install xauth
sudo apt-get install xorg
sudo apt-get install openbox



Open Terminal
Connect to Server ssh -X root@x.x.x.x

Tell to X11 where is the client
export DISPLAY=x.x.x.x:0.0

xclock



If you need to check logs
ssh -X -vv oracle@x.x.x.x