Teach you how to deploy your own private customer service system (2)

Time:2021-10-14

Recently, due to the needs of the project, I wanted to find an online customer service system. After tossing for a week, I found a treasure. I can directly download the privatization deployment. The common functions are relatively complete. The rare thing is that the interface is simple. Share the installation and deployment process.

This is the second article. Let’s start configuring the server main program

Teach you how to deploy your own private customer service system (2)

Download shengxunwei online customer service system:
https://go.shengxunwei.com/?l…

The installation and deployment is relatively simple. The server will be ready in an hour. It is divided into four steps.
1) Create database
2) Configure server main program
3) Configure server resource site
4) Configure and publish customer service end program

===

Configure server main program

Confirm that the “resource” directory and “server” directory in the compressed package have been copied to the server.
In this example, we put the “resource” directory and “server” directory under “C: \ wwwroot \”, where the “server” folder is the main program of the server.

The folder name in the path shall be composed of English only as far as possible, and shall not contain special characters and spaces.

Teach you how to deploy your own private customer service system (2)

configuration parameter

1) Find “Appsettings. JSON” in the “server” directory.

Teach you how to deploy your own private customer service system (2)

2) Open it with Notepad, find the “defaultconnection” node and configure the database connection.

The simplest common connection string configuration format is
Server = server address; Database = database name; Integrated Security=false; user id=sa; Password = password

  • Configure the database engine address behind the server. If the database is installed on the server, directly use an English dot “.”. If you are using cloud database service, fill in the connection address provided by the server.
  • Configure the database name after database, such as “KF”.
  • After password, configure the SA account password entered when installing the database engine.

Teach you how to deploy your own private customer service system (2)

3) Locate the “environment” node and configure the information in several child nodes under it.

  • Tcpipaddress: fill in the server IP address.
  • Tcpport: fill in the communication port open to the customer service system, such as 9527.
  • Resourceaddress: fill in the domain name used by the static resource site. Note that it does not need to end with “/”.
  • Hostaddress: fill in the domain name used by the server main program. Note that the end of “/” is not required.

Teach you how to deploy your own private customer service system (2)

4) Find the “Baidu” node and configure the application AK applied by “Baidu map open platform” in “AK” to judge the region according to the IP address of the visitor.

Teach you how to deploy your own private customer service system (2)

Establish IIS site

1) Start IIS, select the server node, click “module” and confirm that “aspnetcoremodulev2” has been included.

Teach you how to deploy your own private customer service system (2)

2) Right click the website node and click Add website.

Teach you how to deploy your own private customer service system (2)

3) In the add website interface, enter website name, physical path and host name. Click OK.

  • The host name is a domain name starting with KF API, such as KF api.shengxunwei.com.
  • The IP address does not need to be selected.
  • If you have imported an SSL certificate, you can switch the type to HTTPS and select the corresponding certificate.

Teach you how to deploy your own private customer service system (2)

4) In IIS, select “application pool” and find the newly created “server”.

Teach you how to deploy your own private customer service system (2)

5) Double click server, select no managed code in the pop-up interface, and click OK.

Teach you how to deploy your own private customer service system (2)

6) Click “recycling” on the right. In the pop-up window, uncheck all items and click “next”.

Teach you how to deploy your own private customer service system (2)

7) Click finish.

Teach you how to deploy your own private customer service system (2)

8) Click “advanced settings” on the right, find “idle timeout (minutes)” in the pop-up window, and modify the value to “0”.

Teach you how to deploy your own private customer service system (2)

initialization

1) Access your main program domain name in the browser and enter the “status” command, such as “kf-api. Shengxunwei. COM / status”. You can see similar information as shown in the figure, indicating that the installation and deployment are successful.

Teach you how to deploy your own private customer service system (2)

2) Enter the “status / setup” command to initialize the data.

Teach you how to deploy your own private customer service system (2)

At this point, the server main program is installed.