To Setup nfs Network File System (NFS) follow the following steps.
Need to edit file like below
#vi /etc/exports
/home/ramank *(rw,sync)
Save the file.
Or you can perform above step by system-config-nfs (gui)
[root@raman ~]# yum install system-config-nfs.noarch
Running Transaction
Installing : system-config-nfs-1.3.51-2.fc15.noarch 1/1
Installed:
system-config-nfs.noarch 0:1.3.51-2.fc15
Now here is catch in fedora 16.
Service name changed in fedora 16.
1st enable the service and then start like below.
[root@raman systemd]# systemctl enable nfs-server.service
ln -s '/lib/systemd/system/nfs-server.service' '/etc/systemd/system/multi-user.target.wants/nfs-server.service'
[root@raman systemd]# systemctl start nfs-server.service
[root@raman ~]# showmount -e 10.131.11.199
Export list for 10.131.11.199:
/home/ramank *
enjoy with your NFS.
Raman
Thursday, December 15, 2011
Friday, December 2, 2011
Install JBoss 6 Application server on RedHat 5
Download form here
http://www.jboss.org/jbossas/downloads/
jboss-as-distribution-6.1.0.Final.zip
[root@localhost Desktop]# cp jboss-as-distribution-6.1.0.Final.zip /usr/share/
[root@localhost Desktop]# cd /usr/share/
[root@localhost share]# unzip jboss-as-distribution-6.1.0.Final.zip
now here you can see dir with name jboss-6.1.0.Final
####Now create jboss user & group
[root@localhost share]# groupadd jboss
[root@localhost share]# useradd -s /bin/bash -g jboss jboss
###Give ownership to jboss user to manage
[root@localhost share]# chown -R jboss:jboss jboss-6.1.0.Final
Now set bash profile for jboss.
[root@localhost jboss-6.1.0.Final]# su - jboss
[jboss@localhost ~]$ ls
[jboss@localhost ~]$ vi .bash_profile
export PATH
JAVA_HOME=/usr/java/jdk1.7.0_01
export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH
export PATH
JBOSS_HOME=/usr/share/jboss-6.1.0.Final
export JBOSS_HOME
save the file and execute
[jboss@localhost ~]$ . .bash_profile
To test bash profile setting, run following command.
[jboss@localhost ~]$ echo $JAVA_HOME
/usr/java/jdk1.7.0_01
[jboss@localhost ~]$ echo $JBOSS_HOME
/usr/share/jboss-6.1.0.Final
Service script for JBoss i.e Stop/start/restart.
[root@localhost bin]# pwd
/usr/share/jboss-6.1.0.Final/bin
[root@localhost bin]# cp jboss_init_redhat.sh /etc/init.d/jboss
Now edit this file.
18 JBOSS_HOME=${JBOSS_HOME:-"/usr/share/jboss-6.1.0.Final"}
23 #make sure java is in your path
24 JAVAPTH=${JAVAPTH:-"/usr/java/jdk1.7.0_01"}
29 #if JBOSS_HOST specified, use -b to bind jboss services to that address
30 JBOSS_HOST="0.0.0.0"
31 JBOSS_BIND_ADDR=${JBOSS_HOST:+"-b $JBOSS_HOST"}
Note :- HOST 0.0.0.0 mean allow JBoss to bind to any IP.
Now run JBoss service.
[root@localhost bin]# cd /etc/init.d/
[root@localhost init.d]# chmod 755 jboss
[root@localhost init.d]# /etc/init.d/jboss start
JBOSS_CMD_START = cd /usr/share/jboss-6.1.0.Final/bin; /usr/share/jboss-6.1.0.Final/bin/run.sh -c default -b 0.0.0.0
Make sure Jboss service start
try in browser.
http://systemip:8080
Default username-password admin/admin.
http://www.jboss.org/jbossas/downloads/
jboss-as-distribution-6.1.0.Final.zip
[root@localhost Desktop]# cp jboss-as-distribution-6.1.0.Final.zip /usr/share/
[root@localhost Desktop]# cd /usr/share/
[root@localhost share]# unzip jboss-as-distribution-6.1.0.Final.zip
now here you can see dir with name jboss-6.1.0.Final
####Now create jboss user & group
[root@localhost share]# groupadd jboss
[root@localhost share]# useradd -s /bin/bash -g jboss jboss
###Give ownership to jboss user to manage
[root@localhost share]# chown -R jboss:jboss jboss-6.1.0.Final
Now set bash profile for jboss.
[root@localhost jboss-6.1.0.Final]# su - jboss
[jboss@localhost ~]$ ls
[jboss@localhost ~]$ vi .bash_profile
export PATH
JAVA_HOME=/usr/java/jdk1.7.0_01
export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH
export PATH
JBOSS_HOME=/usr/share/jboss-6.1.0.Final
export JBOSS_HOME
save the file and execute
[jboss@localhost ~]$ . .bash_profile
To test bash profile setting, run following command.
[jboss@localhost ~]$ echo $JAVA_HOME
/usr/java/jdk1.7.0_01
[jboss@localhost ~]$ echo $JBOSS_HOME
/usr/share/jboss-6.1.0.Final
Service script for JBoss i.e Stop/start/restart.
[root@localhost bin]# pwd
/usr/share/jboss-6.1.0.Final/bin
[root@localhost bin]# cp jboss_init_redhat.sh /etc/init.d/jboss
Now edit this file.
18 JBOSS_HOME=${JBOSS_HOME:-"/usr/share/jboss-6.1.0.Final"}
23 #make sure java is in your path
24 JAVAPTH=${JAVAPTH:-"/usr/java/jdk1.7.0_01"}
29 #if JBOSS_HOST specified, use -b to bind jboss services to that address
30 JBOSS_HOST="0.0.0.0"
31 JBOSS_BIND_ADDR=${JBOSS_HOST:+"-b $JBOSS_HOST"}
Note :- HOST 0.0.0.0 mean allow JBoss to bind to any IP.
Now run JBoss service.
[root@localhost bin]# cd /etc/init.d/
[root@localhost init.d]# chmod 755 jboss
[root@localhost init.d]# /etc/init.d/jboss start
JBOSS_CMD_START = cd /usr/share/jboss-6.1.0.Final/bin; /usr/share/jboss-6.1.0.Final/bin/run.sh -c default -b 0.0.0.0
Make sure Jboss service start
try in browser.
http://systemip:8080
Default username-password admin/admin.
Update Java in RedHat 5.5 /RHEL
Step to update update in Rehdat 5.5 32 bit.
1) Check current Java verison.
[root@localhost ~]# java --version
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-48)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
2) Default Java package in RedHat is
java-1.4.2-gcj-compat-1.4.2.0-40jpp.115
Download latest JDK.
http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u1-download-513651.html
Pkg name :- jdk-7u1-linux-i586.rpm
Install the pkg
#rpm -Uvh jdk-7u1-linux-i586.rpm
Then just create symbolic link which point to new java installation.
[root@localhost bin]# ln -s /usr/java/jdk1.7.0_01/bin/java /usr/bin/java
Now test your Java version.
[root@localhost bin]# java -version
java version "1.7.0_01"
Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
Java HotSpot(TM) Client VM (build 21.1-b02, mixed mode, sharing)
That all,now next post Installing JBoss.
1) Check current Java verison.
[root@localhost ~]# java --version
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-48)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
2) Default Java package in RedHat is
java-1.4.2-gcj-compat-1.4.2.0-40jpp.115
Download latest JDK.
http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u1-download-513651.html
Pkg name :- jdk-7u1-linux-i586.rpm
Install the pkg
#rpm -Uvh jdk-7u1-linux-i586.rpm
Then just create symbolic link which point to new java installation.
[root@localhost bin]# ln -s /usr/java/jdk1.7.0_01/bin/java /usr/bin/java
Now test your Java version.
[root@localhost bin]# java -version
java version "1.7.0_01"
Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
Java HotSpot(TM) Client VM (build 21.1-b02, mixed mode, sharing)
That all,now next post Installing JBoss.
Subscribe to:
Posts (Atom)
