Achieve remote access to the Liferay Portal 6.1 + Jboss Portal

Source: Internet
Author: User

Achieve remote access to the Liferay Portal 6.1 + Jboss Portal
Fire Cloud computing workgroup Deng qiusheng


I. Problem Description
Download Liferay Portal 6.1 + Jboss software bundle (http://sourceforge.net/projects/lportal/files/Liferay%20Portal/6.1.2%20GA3/liferay-portal-jboss-6.1.2-ce-ga3-20130816114619181.zip/download), decompress it to the C: \ liferay-portal-6.1.1-ce-ga2 directory, under the C: \ liferay-portal-6.1.1-ce-ga2 \ jboss-7.1.1 \ bin directory, double-click standalone. bat file starts liferay-portal-6.1. After it is started, the browser automatically opens and accesses the Liferay Portal home page of the local machine, as shown in 1:

 

 
Figure 1 liferay portal home page on the local machine


However, the Liferay portal can only use http: // 127.0.0.1: 8080 (or http: // localhost: 8080) for local access, rather than remote access. Assume that the IP address of the computer where the software bundle is located is 10.79.0.201, but another computer in the LAN cannot access this page, as shown in Figure 2:

 

Figure 2 non-local access to the Liferay portal failed


Ii. Solution
Method 1:

Add the parameter-B 0.0.0.0 at startup. Open the command window, go to C: \ liferay-portal-6.1.1-ce-ga2 \ jboss-7.1.1 \ bin, enter the command standalone. bat-B 0.0.0.0, start Liferay Portal 6.1, as shown in 3:
 

 


Figure 3 Start the Liferay portal with Parameters

Method 2:
1. Find the standalone. xml file in the application server configuration folder of the Liferay bundle (C: \ liferay-portal-6.1.1-ce-ga2 \ jboss-7.1.1 \ standalone \ configuration), as shown in 4:

 

Figure 4 standalone. xml location


2. Open the standalone. xml file on the WordPad and find the following interfaces Tag:
<Interface name = "public">
<Inet-address value = "$ {jboss. bind. address: 127.0.0.1}"/>
</Interface>
Modify it:
<Interface name = "public">
<Inet-address value = "$ {jboss. bind. address: 0.0.0.0}"/>
</Interface>
5:
 

 


Figure 5 modify public interface

3. In the C: \ liferay-portal-6.1.1-ce-ga2 \ jboss-7.1.1 \ bin directory, double-click the standalone. bat file to start the liferay-portal-6.1.
Iii. effects achieved
After the portal is started, use another computer in the LAN to access the portal. The portal homepage is displayed in the browser, as shown in Figure 6:
 

 


Figure 6 remote access to the Liferay Portal

 

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.