OFBiz port modification (how to deploy multiple OFBiz applications on the same server)

Source: Internet
Author: User

How to run multiple OFBiz applications on the same server or use port 8080 of the current server by another project? After debugging, we found that we only need to modify two files, it is relatively simple.

For details, refer to the following solutions:

1. ofbiz_home \ framework \ base \ config \ port 1099 8080 in the following section of the ofbiz-containers.xml

<! -- Load the naming (JNDI) server -->
<Container name = "Naming-container" class = "org. OFBiz. Base. Container. namingservicecontainer">
<Property name = "host" value = "0.0.0.0"/>
<Property name = "Port" value = "1098"/> // change from 1099 to 1098
</Container>
<! -- RMI service dispatcher -->
<Container name = "RMI-dispatcher" class = "org. OFBiz. Service. RMI. rmiservicecontainer">
<Property name = "bound-name" value = "rmidispatcher"/>
<Property name = "bound-host" value = "127.0.0.1"/>
<Property name = "bound-port" value = "1098"/> // change from 1099 to 1098
<Property name = "delegator-name" value = "default"/>
<Property name = "client-factory" value = "org. OFBiz. Service. RMI. Socket. SSL. sslclientsocketfactory"/>
<Property name = "server-factory" value = "org. OFBiz. Service. RMI. Socket. SSL. sslserversocketfactory"/>
<Property name = "SSL-keystore" value = "framework/base/config/ofbizrmi. jks"/>
<Property name = "SSL-keystore-type" value = "jks"/>
<Property name = "SSL-keystore-Pass" value = "changeit"/>
<Property name = "SSL-keystore-alias" value = "rmissl"/>
<Property name = "SSL-client-auth" value = "false"/>
</Container>
<Property name = "http-connector" value = "connector">... <property name = "Port" value = "80"/> // change from 8080 to 80... </property>
<Property name = "https-connector" value = "connector">... <property name = "Port" value = "8553"/> // change from 8443 to 8553... </property>

2. Ports 8443 and 8080 in the following section of ofbiz_home \ framework \ webapp \ config \ URL. Properties

# HTTPS port (Secure port) port. HTTPS. enabled = y port. HTTPS = 8553 // change from 8443 to 8553 force. HTTPS. host = # http port (not secure port) port. HTTP = 80 // change from 8080 to 80 force. HTTP. host =

 

---------------------

How to disable OFBiz

Blog type: OFBiz
Java
Add:

-Dofbiz. admin. Port = XXXXX-dofbiz. admin. Key = XXXXX

For example:
Java-dofbiz. admin. Port = 15001-dofbiz. admin. Key = towerjt OFBiz. jar-start

In this way, you can use the following command to close OFBiz.
Java-dofbiz. admin. Port = 15001-dofbiz. admin. Key = towerjt OFBiz. jar-Shutdown

Colleagues can remotely close the system through Telnet elsewhere
Telnet XXX. XXX 15001

Send: towerjt: Shutdown
The same is true.

------------------------

Startofbiz. Sh

Modify

# Shutdown settings
Admin _port = 10523
Admin_key = so3du5kasd5dn

# VM ARGs
Admin = "-dofbiz. admin. Port = $ admin_port-dofbiz. admin. Key = $ admin_key"

 

 

 

# HTTPS port (Secure port) port. HTTPS. enabled = y port. HTTPS = 8553 // change from 8443 to 8553 force. HTTPS. host = # http port (not secure port) port. HTTP = 80 // change from 8080 to 80 force. HTTP. host =

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.