About Installing weblogic10 and JDK5 in FedoraLinux and configuring Environment Variables
Source: Internet
Author: User
For more information about installing weblogic10 and JDK5 in FedoraLinux and configuring environment variables-general Linux technology-Linux programming and kernel, see the following. I haven't posted any technical posts for a long time, because I haven't learned anything recently, so I am ruined. Now I have learned something and I want to remember it quickly. Otherwise I have learned it in vain. I especially don't trust my head, two days later, I must have forgotten everything. This is very positive. I am also investigating the cause!
These two days I installed the Linux Fedora 5 version to perform the weblogic10 test. I haven't used it before. It's a Japanese system after installation. It's easy to install linux, it's similar to windows, just a dumb!
Then install weblogic. This installation is not done by double-clicking! The procedure is as follows:
1. Enter the GNOME terminal, just like the windows cmd command window
2. Input: chmod + x server1001_linux32.bin --> to install the software on linux, grant the executable permission to the software.
3. Enter./server1001_linux32.bin --> to start installation. The installation process is the same as that of windows.
After weblogic is installed, you must install jdk. If it matches weblogic10, you can select jdk 1.5. If the software can go to the sun website, you must register it first, find it by yourself! It's not easy to find the linux version. It's mainly because my English is too bad. Haha!
The installation procedure is as follows:
1. Input: chmod + x jdk-1_5_0_13-linux-i586-rpm.bin --> first, grant permissions
2. input :. /jdk-1_5_0_13-linux-i586-rpm.bin --> run this file, read the installation instructions, select yes all the way, after the completion will in the same directory decompress a jdk-1_5_0_13-linux-i586-rpm file, and then install this file.
3. grant execution permission: chmod + x jdk-1_5_0_13-linux-i586-rpm
4. the next-ivh command can only be operated as a system administrator. The system administrator is root, So switch the user here, enter the command su, and then prompt to enter the password, the password entered in linux is invisible, only the cursor is visible, so just press enter after the input is complete (Note: The password here is not the default one, it was created with a common user during installation.) After you press enter, convert the user to root --> [root @ localhost bin] #. Pay attention to the # number next to it. If it is a common user, the $ symbol will be followed, for example, [panpan @ localhost] $. This is different! If this parameter is left blank, the user will be prompted about the lock error!
After the installation is complete, the jdk directory is under the/usr/java directory. Next, configure the environment variable!
First of all, I would like to thank a netizen for writing in quite detail. Thanks to his selfless spirit, he deliberately left the website here! Http://linux.ccidnet.com/art/302/20070616/1115183_1.html
The procedure is as follows:
1. Set Environment Variables
# Vi/etc/profile enter the vi editor and add this section to the end.
# Java ......................
JAVA_HOME =/usr/java/jdk1.5.0 _ 08/
CLASSPATH =.: $ JAVA_HOME/lib/tools. jar:/lib. dt. jar
PATH = $ JAVA_HOME/bin: $ PATH
Export JAVA_HOME CLASSPATH PATH
Save and exit
Press esc
Enter -->: wq and return to the GNOME terminal.
2. The next step is to give it to the user, but it is essential!
Vi/etc/profile. d/java. sh
JAVA_HOME =/usr/java/jdk1.5.0 _ 08/
CLASSPATH =.: $ JAVA_HOME/lib/tools. jar:/lib. dt. jar
I did not succeed in this step, but it was also passed during the test!
4. Test whether JAVA is installed
Java-version
Haha !! Yes, that's it! After my verification, please feel free to use it !!
In addition, a problem was solved later. All we had to do was release weblogic on linux, and we needed to remotely access it. Later we tried to solve the problem. This later confirmed that it was the reason why the firewall was enabled, but I did not find a place to close the firewall. Then I checked it online. The original port number can be allocated! The procedure is as follows:
When the firewall is enabled, make the following settings to enable the relevant ports,
Modify the/etc/sysconfig/iptables file and add the following content:
-A RH-Firewall-1-INPUT-m state -- state NEW-m tcp-p tcp -- dport 80-j ACCEPT
-A RH-Firewall-1-INPUT-m state -- state NEW-m tcp-p tcp -- dport 22-j ACCEPT
Assign a port to weblogic. You only need to add this sentence to the file. The weblogic port number is 7001. In this way, no problem occurs.
-A RH-Firewall-1-INPUT-m state -- state NEW-m tcp-p tcp -- dport 7001-j ACCEPT
The above has been done in recent days. Although it is very simple for the experts, it is very difficult for me to be a newbie.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service