.NET Alibaba Cloud Windows Server Server Deployment Simple Record

1. The first is to find IIS. On the Alibaba Cloud server, we are provided with a server manager. Create new roles and functions on Server Manager. Here you need to pay attention to the selected functions. If some functions are not installed, the deployment will fail.
write picture description here

write picture description here

write picture description here

2. If it involves uploading files to create a folder, some permissions are required. Mainly the setting of write permissions.
write picture description here

3. If you add a website, you should write a host name. If you don't write it, you can access it through IP. If you write it, you can only access it through the domain name.

4, HTTPSunified Certify The Webfor management, more convenient.

5. If there are some special file types for uploading and downloading, you need to set the MIMEtype of the website and need to add new ones, such as the files recorded by the WeChat applet silk, or the files of Android, apketc., just select application/octet-streamthe value. It should be noted here that the new addition is 本地, not 继承, so after each redeployment, there may be no more, you need to check, if not, add it again.

6. It is useless to select utf8mb4 when mysql is created, it needs my.inito be set in . file in c:/programData/mysql/.../... The following configuration clientis a new line, and the other two terminals need to be commented out.

[client]
default-character-set=utf8mb4

[mysql]
default-character-set=utf8mb4
#default-character-set=utf8

[mysqld]
character-set-server=utf8mb4
#character-set-server=utf8

7. When vscombining with development mysql, the main thing is to select the corresponding driver, etc. Here is a picture for reference. The reference configuration is: vs 2017 community, mysql 5.7.21, MySQL Connector/Net 6.9.11, MySQL for VS 2.0.4, EF 6.2.0, MySql.Data 6.9.11, MySql.Data.Entity 6.9.11.
write picture description here

8. However, the above configuration seems to have problems with re-installation log4Netor , mainly in the version incompatibility, so the version should be better .NLogEFEF6.1.3

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325856115&siteId=291194637