-
mysql> SET PASSWORD FOR 'usuario'@'host' = PASSWORD('contraseña');
-
Step 5: Create a start/stop/restart script for JBoss.
For our JBoss script we will simply copy the existing jboss_init_redhat.sh script located at at /usr/share/jboss-5.1.0.GA/bin, copy it to /etc/init.d and rename it to 'jboss':
-
1. Create a new file called java.sh
vim /etc/profile.d/java.sh
2. Within this file, initialize the necessary environment variables
export JRE_HOME=/usr/java/jdk1.5.0_12/jre
… more variablesNow when you restart your machine, the environment variables within java.sh will be automatically initialized (checkout /etc/profile if you are curious how the files in /etc/profile.d/ are loaded) .
-
zip -9 -r <zip file> <folder name>
To zip a single file:
zip -9 <zip file> <filename>
Use "-9" for best compression. The compressed file works fine with Windows XP compression tool.
links for 2011-05-08
9 05 2011
Advertisement



Comentarios recientes