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
Download shengxunwei online customer service system:
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.
1) Find “Appsettings. JSON” in the “server” directory.
2) Open it with Notepad, find the “defaultconnection” node and configure the database connection.
- 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.
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.
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.
Establish IIS site
1) Start IIS, select the server node, click “module” and confirm that “aspnetcoremodulev2” has been included.
2) Right click the website node and click Add website.
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.
4) In IIS, select “application pool” and find the newly created “server”.
5) Double click server, select no managed code in the pop-up interface, and click OK.
6) Click “recycling” on the right. In the pop-up window, uncheck all items and click “next”.
7) Click finish.
8) Click “advanced settings” on the right, find “idle timeout (minutes)” in the pop-up window, and modify the value to “0”.
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.
2) Enter the “status / setup” command to initialize the data.
At this point, the server main program is installed.