We are going to create soft link for test folder in new directory under disk2
#cd /root/test
#mv -v test /disk2/
#ln -s /cvs2/test/ test
#cd /root/test
#mv -v test /disk2/
#ln -s /cvs2/test/ test
# rpm -ivh jdk-7u7-linux-x64.rpm
To check java installed or not:
# java --version
Set java variable path:
#JAVA_HOME=/usr/java/latest
#export JAVA_HOME
#PATH=$JAVA_HOME/bin:$PATH:$HOME/bin
Also add the above 3 lines in vim /etc/bash_profile save and close it.
Download jboss7 to /usr/local/ and unzip it.
#unzip jboss-as-7.1.1.Final.zip (It will unzip as
jboss-as-7.1.1
)
#mv
jboss-as-7.1.1 jboss-as
Assign the owner permission to jboss for
/usr/local/jboss-as directory.
#chown -R jboss:jboss /usr/local/jboss-as
To create service user /etc/init.d do as follow:
#cp /usr/local/jboss-as/bin/init.d/jboss-as-standalone.sh /etc/init.d/jboss
#mkdir /etc/jboss-as
#cp /usr/local/jboss-as/bin/init.d/jboss-as.conf /etc/jboss-as/
#chmod 755 /etc/ini.d/jboss
Edit and add the below entries in /etc/init.d/jboss:
#vim /etc/init.d/jboss
# chkconfig: - 234 80 20 to run jboss in 234 run level
# Set defaults.
JBOSS_USER=jboss
export JBOSS_USER
if [ -z "$JBOSS_HOME" ]; then
JBOSS_HOME=/usr/local/jboss-as
Save and close text editor...
To access jboss console through browser from remote system:
change 0.0.0.0 instead of 127.0.0.0. only in the below lines.
# vim /usr/local/jboss-as/standalone/configuration/standalone.xml
<interface name="management">
<inet-address value="${jboss.bind.address.management:0.0.0.0}"/>
</interface>
<interface name="public">
<inet-address value="${jboss.bind.address:0.0.0.0}"/>
save and close text editor.
#
chkconfig --add jbossNow we can start the jboss as system service:
#/etc/init.d/jboss start
and
We can access it through browser.
10.0.0.1:8080
*************************************************************
To add jboss mnagement user:
Go to /usr/local/jboss-as/bin/
#./add-user.sh
You should see the following message on the console after executing the command:
What type of user do you wish to add?
a) Management User (mgmt-users.properties)
b) Application User (application-users.properties)
(a): a
We select “a”, next you should see the following message:
Enter the details of the new user to add.
Realm (ManagementRealm) :
Username : jboss
Password :
Re-enter Password :
* hit enter for Realm to use default, then provide a username and password
We select the default value for the Realm (ManagementRealm), by hitting enter, and select “jboss” as our username and password.
#mysqldump
-p --no-create-db --no-create-info --no-data --routines DBNAME > DBNAME_23Oct2012.sql
And imoprt .sql file to running db.
#mysql -u root -p DBNAME < DBNAME_23Oct2012.sql
Restart Mysql DB
To check Store procedure in Mysql
#Login into mysql DB and type the below command
SHOW PROCEDURE STATUS;
SHOW FUNCTION STATUS;
Thats it!!!!
|
# mysql -h 10.10.28.8 -u root -p
Enter password:
ERROR 1130: Host '10.10.28.8' is not allowed to connect to this MySQL server
# telnet 192.168.1.8 3306 host 10.10.28.8 is not allowed to connect to this mysql server
2.To allow a specific client ip-address (10.10.28.8) to access the mysql database running on a server,# mysql -u root -p
Enter password:
mysql> use mysql
mysql> GRANT ALL ON *.* to root@'10.10.28.8' IDENTIFIED BY '$dfg!23';
mysql> FLUSH PRIVILEGES;
That's it.....It should work!!!!
i686 ==> 32-bit kernel
If it 64 bit os the output would be follow:x86_64 ==> 64-bit kernel
Or
can use following command to check the OS versions:
# uname -a
#
getconf LONG_BIT
#
cat /proc/cpuinfo
ServerRoot :: /etc/httpd Primary Config Fle :: /etc/httpd/conf/httpd.conf Other Config Files :: /etc/httpd/conf.d Module Locations :: /usr/lib/httpd/modules DocumentRoot :: /var/www/html ErrorLog :: /var/log/httpd/error_log AccessLog :: /var/log/httpd/access_log cgi-bin :: /var/www/cgi-bin (empty and disabled by default) binary name and path :: /usr/sbin/httpd runtime directory :: /etc/httpd/run
root@bilal# service mysqld stop
root@bilal# /usr/sbin/mysqld --skip-grant-tables &
root@bilal:/# mysql -u root
mysql> UPDATE mysql.user SET Password=PASSWORD('Newpassword') WHERE User='root';
mysql> FLUSH PRIVILEGES;
# Banner /etc/banner (you can use any path you want)
# root@server [/]# /etc/init.d/sshd restart