Do you have trouble checking, maintaining, and opening interfaces every day? ——No, you can be more creative!
Flew all the way back to the company's computer room during the holiday to deal with a small fault? ——No, you can be more free and efficient!
If this is your portrayal, why not choose to go to the cloud?
If you want to go to the cloud, why not choose Huawei Cloud?
The second cheat is here as scheduled. This cheat explains in detail how to deploy Lanling EKP software on HUAWEI CLOUD to help you become a company "flying on the cloud"!
Finally, please believe in the sincerity and strength of our HUAWEI CLOUD Eco-ISV team, thank you!
GO!!!
Article Directory
1. Preliminary resource preparation
1.1 Registering a HUAWEI CLOUD account
Contact [email protected] for registration (provide exclusive support, exclusive discounts)
The official website account cannot provide support services. For exclusive support and discounts, please contact [email protected] to register
1.2 Obtain Lanling EKP installation package and middleware
Obtain the Lanling EKP installation package (including ekp.zip, linux64.zip, ekp_initdata.zip and other files) through the original Lanling factory/distributor
2. Huawei Cloud Resource Planning
2.1 HUAWEI CLOUD ECS Planning
area | Availability zone | specification | vCPU | RAM | operating system | system disk | Data disk |
---|---|---|---|---|---|---|---|
South China-Guangzhou | random | General-purpose computing enhanced C6 | 8 | 32G | Cent OS 7.6 64bit | High IO 40GB | High IO 100GB |
2.2 Huawei Cloud RDS Planning
area | Availability zone | Instance type | specification | vCPU | RAM | storage |
---|---|---|---|---|---|---|
South China-Guangzhou | random | MySQL 5.7 active and standby | General enhanced | 4 | 16G | Ultra high IO 100GB |
2.3 EIP planning of elastic public network
area | Bandwidth peak |
---|---|
South China Guangzhou | 5Mbps |
2.4 Security Group Open Port Planning
HTTP protocol | Aspose attachment conversion service | Independent search service | SSH | Windows | Server.xml | MySQL port (RDS) |
---|---|---|---|---|---|---|
80 | 5665 | 9200、9300 | 22 | 3389 | 8080 | 3306 |
3. Create HUAWEI CLOUD resources
3.1 Create HUAWEI CLOUD ECS
Steps
-
Purchasing ECS elastic cloud server according to the plan and configuration in 2.1, choose South China-Guangzhou as the region, and select the “General Computing Enhanced C6-8 Core 32G” instance at random; choose “Cent OS 7.6 64bit” for mirroring, and choose the hard disk with corresponding capacity;
-
Click "Next Network Configuration", select the default virtual private cloud "vpc-default" (if there is no VPC, click Create, the default configuration is fine, or you can customize the settings), select the security group "Sys-default", select " Buy now "flexible public network, "charged by bandwidth", bandwidth size: 5M. You can also choose not to purchase it temporarily, and then bind the elastic cloud server instance after purchasing it separately.
-
Click "Next Advanced Configuration", set the server name and password, cloud backup can be purchased according to the situation, the rest of the configuration can be the default.
-
Click "Next Confirm Configuration", check "Agree to Service Agreement", submit the order and pay, and complete the creation of ECS resources.
3.2 Create HUAWEI CLOUD RDS resources
Steps
-
Purchase the corresponding configuration RDS according to the resource plan, set the RDS name, select "MySQL 5.6 active and standby", select "Ultra High IO" for storage type, select "General Enhanced-4 Core 16G" for performance specifications, and 100G of storage space; select ECS The same VPC, and set a password, the security group can be selected according to the situation.
-
Click "Buy Now", check "Service Agreement", submit the order and pay, and now complete the RDS creation.
3.3 Open Security Group Port
According to the security group port plan, you need to confirm that the corresponding port is open.
Steps
-
Enter the security group service, select the security group bound to ECS (select "Sys-default" for this deployment), select "Inbound Rule", click "Add Rule", enter the planning list port, and configure the source address option (default Open for all). The priority can be set according to your own situation.
-
Select the security group bound to RDS (this deployment is still "Sys-default"), add the default port 3306 of the MySQL database in the inbound rule, and set the priority according to your own situation.
-
This completes the security group port settings.
4. Deploy Tomcat service
4.1 Log in to the cloud server
There are several ways to log in to the Linux cloud server:
-
Through the console "remote login" button, select "cloudshell" to log in;
-
Through the console "remote login" button, choose VNC to log in;
-
Log in via remote desktop;
For more login methods, please visit: https://support.huaweicloud.com/usermanual-ecs/zh-cn_topic_0013771089.html
4.2 Create ekp user
-
Create user and set password
useradd ekp //添加用户名ekp passwd ekp //为用户ekp设置密码 password //自行输入密码自行设置。 ls /home //查看 /home路径下的ekp用户
-
Log in to ECS as user ekp
exit //先退出当前root用户
Log in to ekp user through account password
4.3 Upload the ekp installation package and decompress it
-
Upload the two files ekp.zip and linux64.zip in the Lanling installation package to the /home/ekp path in ECS (you need to upload as the ekp user, otherwise there will be file ownership issues);
-
Use the unzip command to decompress linux64.zip and ekp.zip;
unzip linux64.zip unzip ekp.zip
-
Enter the linux64 directory and view the files in this directory
cd linux64 //进入该目录 ll //查看该目录下文件及权限
-
Modify file operation permissions
chmod +x \*.sh //修改.sh作为后缀的所有文件为可执行 ll //查看该目录下文件及权限(权限已修改)
4.4 Start/Shutdown Tomcat server
-
Perform the initial configuration environment (ekp's initial environment)
./init.sh //初始化配置环境
-
Configure environment variables
cd \~ //回到根目录 source .bash\_profile //配置环境变量
-
Safely start Tomcat
cd /home/ekp/linux64 //进入/home/ekp/linux64目录 ./start-safe64.sh //安全启动Tomcat,用于配置数据库
-
After getting the response shown in the figure above, keep the process running and proceed to the next step of database configuration.
5. Configure mysql connection
5.1 New user library ekp
Steps
-
Log in to Huawei Cloud Database RDS
Enter the RDS service, choose to log in to the previously created RDS (this method connects to the database through the DAS service, and the user can also connect through the localization tool), enter the account password, and test the connection. After the connection is successful, log in to the database;
-
Click "New Database" in the Data Management Service DAS, enter the database name, select utf8 for the character set, and click Create;
5.2 Configure database connection
Steps
-
Access through a local browser: http:// ECS public network IP : 8080/ekp/admin.do, password: Password1
-
After login, select the database type "MySQL", modify the database connection address to jdbc:mysql:// RDS private network IP :3306/ database name ?useUnicode=true&characterEncoding=UTF-8, enter the RDS password, and test the connection;
-
Click Save to complete the database configuration (you can click to backup the configuration file, after the backup, subsequent upgrades do not need to be configured).
6. Restart Tomcat service
Steps
-
Stop Tomcat service
cd /home/ekp/linux64 //进入/home/ekp/linux64目录 ./stop-Tomcat.sh //执行停止脚本
-
Start Tomcat service normally
./start-normal64.sh //执行正常启动脚本
A new index will be created at the first startup, which takes a little longer
7. System initial configuration
7.1 Configure Lanling EKP background system
Steps
-
Initialize the system
The browser visits http:// ECS public network IP : 8080/ekp/sys, select operation and maintenance management-administrator toolbox-system initialization, click execute. (The user name is admin, the default password is 1)
-
Import system basic data
-
Upload the ekp_init.zip data package and analyze the data. After the analysis is complete, check the importable module and choose to import;
-
The import was successful.
7.2 Configure administrator rights
Steps
-
Select organization authority management-organizational structure-personnel, click edit;
-
Select business related and submit.
-
Complete the administrator authority configuration.
7.3 Configure Portal Engine
Steps
-
Select Portal Engine-Portal Maintenance-Portal Configuration, click Edit;
-
In the column of default visitors, select add user;
-
Select the organization structure in the address book, check the administrator, and click OK;
-
Submit changes;
-
Repeat steps 2, 3, and 4 to complete the default visitor configuration for all portals such as "Personal Center", "Information Portal", and "Knowledge Portal".
7.4 Log in to the homepage of EKP
The browser visits http://ECS public network IP:8080/ekp, enter the user name and password
At this point, Lanling EKP has completed the deployment.
For business cooperation, please contact: [email protected]