In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the relevant knowledge of "what is the method of Java O2OA server cluster deployment and configuration". The editor shows you the operation process through an actual case, and the operation method is simple, fast and practical. I hope this article "what is the method of Java O2OA server cluster deployment and configuration" can help you solve the problem.
Host information
Host: 192.168.0.1
Host: 192.168.0.2
Cluster demand
192.168.0.1: application server, file storage server, database server, central server, WEB server
192.168.0.2: application server, file storage server, database server
Configuration step
Configure node identification
Modify or add the file node.cfg in the o2server/local directory of host 192.168.0.1, and modify the domain name or IP of the host (if accessed by domain name, the content is domain name, such as demo.o2oa.net)
Node identity file configuration for host 192.168.0.1
192.168.0.1
2. Modify or add the file node.cfg in the o2server/local directory of host 192.168.0.2, and modify the domain name or IP of the host (if accessed by domain name, the content is domain name, such as demo.o2oa.net)
Node identity file configuration for host 192.168.0.2
192.168.0.2
Prepare the configuration file
The dual server cluster needs to prepare two configuration files named by server IP (if accessed by domain name, the file needs to be named by domain name, such as node_demo.o2oa.net.json):
1. Node_127.0.0.1.json the copy file from the o2server/configSample directory of any host to another directory, and the command is node_192.168.0.1.json
2. In step 1, node_127.0.0.1.json the copy file from the o2server/configSample directory of any host to another directory, and the command is node_192.168.0.2.json
3. Modify node_192.168.0.1.json, modify isPrimaryCenter = true, and mark the server as the central server. The configuration file is as follows:
{
"enable": true
"isPrimaryCenter": true
"application": {
"enable": true
.
}
"web": {
"enable": true
.
}
"data": {
"enable": true
.
}
"storage": {
"enable": true
.
}
.
}
3. Modify node_192.168.0.2.json, modify isPrimaryCenter = false, mark that the server is not a central server, and shut down the WEB server of the server. The configuration file is as follows:
{
"enable": true
"isPrimaryCenter": false
"application": {
"enable": true
.
}
"web": {
"enable": false
"sslEnable": false
"proxyHost":
.
}
"data": {
"enable": true
.
}
"storage": {
"enable": true
.
}
.
}
Place the configuration files node_192.168.0.1.json and node_192.168.0.2.json in the o2server/config directory of both servers, as shown in the following figure:
Or:
Start the server
Start server 192.168.0.1
Server 192.168.0.1 should start all services, so after executing start_windows.bat or. / start_linux.sh, type start directly to start the server.
Start server 192.168.0.2
Server 192.168.0.2 only needs to start part of the service, so you need to type the command in turn to start the corresponding server:
Start the database server
Type the command: start data
Start the file storage server
Type the command: start storage
Start the application server
Note: before the 192.168.0.2 startup, the 192.168.0.1 central server must be started, otherwise the application server startup will report an error.
Type the command: start application
This is the end of the content about "what is the method of Java O2OA server cluster deployment configuration". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.