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.
2. If it involves uploading files to create a folder, some permissions are required. Mainly the setting of write permissions.
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, HTTPS
unified Certify The Web
for management, more convenient.
5. If there are some special file types for uploading and downloading, you need to set the MIME
type of the website and need to add new ones, such as the files recorded by the WeChat applet silk
, or the files of Android, apk
etc., just select application/octet-stream
the 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.ini
to be set in . file in c:/programData/mysql/.../..
. The following configuration client
is 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 vs
combining 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
.
8. However, the above configuration seems to have problems with re-installation log4Net
or , mainly in the version incompatibility, so the version should be better .NLog
EF
EF
6.1.3