Title: 🖥Windows Deployment Canonical: https://microi.net/en/doc/getting-started/win-install-microi.html Page-Modified: 2026-10-12T10:49:46.000Z Source: published HTML document body; page revision is not a capability verification date. # 🖥Windows Deployment Deploying Microi Low Code Platform in Windows Server Environment --- ## 📦Environmental Installation ### 1️⃣Installation. NET runtime environment Download and install the Hosting Bundle and ASP. NET Core Runtime 9.x x64These 2 files: download address https://dotnet.microsoft.com/en-us/download/dotnet/9.0 (https://dotnet.microsoft.com/en-us/download/dotnet/9.0) [在这里插入图片描述: https://file.microi.net/upload/editor/image/202211/6380477367466977006970663.png#pic_center] --- ### two️⃣Download Web Deploy - Download address: https://www.iis.net/downloads/microsoft/web-deploy (https://www.iis.net/downloads/microsoft/web-deploy) - Select [Typical Installation] when installing - It is recommended to check whether the IIS module hasAspNetCoreModuleV2Module [安装 Web Deploy: https://file.microi.net/upload/editor/image/202211/6380477378879752132167332.png#pic_center] Service Check Ensure that the following two services are in the [Running] state and the startup type is configured as [Automatic] (some Windows Server 2016 can be skipped). If a service startup error is encountered, it is recommended to restart the server operating system. [服务检查: https://file.microi.net/upload/editor/image/202211/6380485239954922151314394.png#pic_center] --- ### three️⃣Install IIS This step is the basic operation, can be Baidu search. --- ### four️⃣Install MySQL database Project | Explanation | Supported versions | MySQL 5.5 / 5.6 / 5.7 / 8.0 | Official 5.7 Download | https://dev.mysql.com/downloads/file/?id=514047 (https://dev.mysql.com/downloads/file/?id=514047) | Installation Type | Select Server only | Screenshot of the installation steps (the interface of the installation package downloaded at different times may be slightly different): | | [安装步骤1: https://file.microi.net/upload/editor/image/202211/6380369903514717805320923.png#pic_center] Click [Add] on the right]: [安装步骤2: https://file.microi.net/upload/editor/image/202211/6380369903553471386628081.png#pic_center] [安装步骤3: https://file.microi.net/upload/editor/image/202211/6380369903578114162396094.png#pic_center] [安装步骤4: https://file.microi.net/upload/editor/image/202211/6380369903608305376252952.png#pic_center] [安装步骤5: https://file.microi.net/upload/editor/image/202211/6380369903728321578376962.png#pic_center] [安装步骤6: https://file.microi.net/upload/editor/image/202211/6380369903727997722580803.png#pic_center] [安装步骤7: https://file.microi.net/upload/editor/image/202211/6380369903749410369636717.png#pic_center] Post-installation configuration: a) Release the MySQL port in the firewall B) Allow MySQL remote connection: bash ``` # 进入 MySQL 命令行 mysql -uroot -p密码 -P端口 # 执行以下命令 use mysql; update user set host='%' where user ='root'; FLUSH PRIVILEGES; GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; ``` C) use Navicat to connect to MySQL, create a database (code usingutf8mb4/utf8mb4_general_ci), restore database --- ### 5️⃣Install Redis Cache Project | Explanation | GitHub Download | https://github.com/microsoftarchive/redis/releases (https://github.com/microsoftarchive/redis/releases) | iTdos mirror | https://file.microi.net/soft/redis-x64-3.0.504.msi (https://file.microi.net/soft/redis-x64-3.0.504.msi) | Screenshot of installation steps: | | [安装 Redis 1: https://file.microi.net/upload/editor/image/202211/6380377615195291607333151.png#pic_center] [安装 Redis 2: https://file.microi.net/upload/editor/image/202211/6380377615193259492630058.png#pic_center] Post-Installation Configuration: Edit the installation directoryredis.windows-service.conf: - Allow remote connections:Add 'bind 0.0.0.0 'below line 60'#bind 127.0.0.1' - Set Password:About line 387 '# requirepass foobared' add' requirepass your password' - Restart the Redis service, open the firewall port, and use the Redis connection tool to test --- ### six️⃣Install the MongoDB database Project | Explanation | Recommended version | 4.2.23(4.4.17 Win Server 2012 R2 not supported) | Official Download | https://www.mongodb.com/try/download/community (https://www.mongodb.com/try/download/community) | iTdos image | https://file.microi.net/soft/mongodb-win32-x86_64-2012plus-4.2.23-signed.msi (https://file.microi.net/soft/mongodb-win32-x86_64-2012plus-4.2.23-signed.msi) | [安装 MongoDB 1: https://file.microi.net/upload/editor/image/202211/6380377827464317905833519.png#pic_center] | | [安装 MongoDB 2: https://file.microi.net/upload/editor/image/202211/6380377818853432765738119.png#pic_center] | | Select Custom: [安装 MongoDB 3: https://file.microi.net/upload/editor/image/202211/6380377818884792517096417.png#pic_center] [安装 MongoDB 4: https://file.microi.net/upload/editor/image/202211/6380377818904712359053021.png#pic_center] Use the default Run service as Network Service user: [安装 MongoDB 5: https://file.microi.net/upload/editor/image/202211/6380377818932506997802046.png#pic_center] Remove the check box for Install MongoDB Compass. Access after installationlocalhost:27017The following interface appears to indicate a successful installation: [安装成功: https://file.microi.net/upload/editor/image/202211/6380377916760887465029633.png#pic_center] Set account password: Enter the MongoDB installation directorybindirectory to execute cmd: bash ``` mongo use admin db.createUser({user: 'root', pwd: '你的密码', roles: ['root']}) db.auth('root', '你的密码') # 返回 1 表示正确 ``` --- ### seven️⃣Install MinIO Distributed Storage Official website Download: https://min.io/download#/windows (https://min.io/download#/windows) (on an exe program) [下载 MinIO: https://file.microi.net/upload/editor/image/202211/6380406928638277002335189.png#pic_center] Deployment steps: - To putminio.exeinto a directory, suchD:\Microi\Minio\minio.exe - Download WinSW-net461.exe (https://file.microi.net/soft/WinSW-net461.exe), put it in the same directory and rename itminio-server.exe - Download the minio-server.xml (https://file.microi.net/soft/minio-server.xml) configuration file and put it in the same directory. - cmd entryminio.exeDirectory, execute: bash ``` minio-server.exe install minio-server.exe start # 其它常用命令 minio-server.exe stop sc delete minio-server.exe ``` MinIO Configuration Description - Sys_OsClientsin itMinIOEndPointNeed to be configured:{IP}:9000 - System Settings → Development ConfigurationFileServerNeeds to be configured as:http://{IP}:9000/itdos-public - Visitlocalhost:9000, the default account number isminioadmin Create two buckets:itdos-public(the configuration permission is public),itdos-private --- ### eight️⃣Install the IIS environment [服务器管理: https://file.microi.net/itdos/itdos/upload/editor/image/202309/6383125155877365101931668_origin.png/20230925/iis.png#pic_center] - Open the server management interface - Manage → Add Roles and Functions → Server Roles → Check Web Server (IIS) Check All (except FTP Server Module) - Default next step until installation succeeds IIS management interface: [打开 IIS: https://file.microi.net/itdos/itdos/upload/editor/image/202309/6383125179476379767066462_origin.png/20230925/%E6%89%93%E5%BC%80iis.png#pic_center] [管理界面: https://file.microi.net/itdos/itdos/upload/editor/image/202309/6383125180836250262781416_origin.png/20230925/IIS%E7%AE%A1%E7%90%86%E7%95%8C%E9%9D%A2.png#pic_center] --- ## 🚀Program deployment ### 📥Download and unzip the 2-piece program. --- ### ⚙️ Deploy microi-api backend interface system - Open the root directoryappsettings.json, modifyOsClient、OsClientType、OsClientNetwork、OsClientDbConnfour parameters [配置文件: https://file.microi.net/itdos/itdos/upload/editor/image/202309/6383124995671143943939168_origin.png/20230925/auth.png#pic_center] - Run cmd or PowerShell in the same directory: bash ``` dotnet Microi.net.Auth.dll --urls=http://0.0.0.0:1051 ``` License Problem If you are prompted to License the problem, the HID will be output in the error message, and the HID will be provided to the system administrator to obtain the commercial authorization certificate, which will be overwritten in the directory at the same level and then run again. - Access after deployment:localhost:1051 - The service system can be used as a Windows service: bash ``` sc create microi-api binPath="C:\Microi\Microi.net.Auth\net10.0\Microi.net.Api.exe" ``` --- ### 🌐Deployment microi-web front-end access system - Create a website directly in IIS and use any program pool without configuring environment variables. - Modify the root directory/index.htmlin itOsClient、ApiBaseVariable value Attention the figure is for reference only. please fill in the real client name and api address. [在这里插入图片描述: https://file.microi.net/itdos/itdos/upload/editor/image/202309/6383124964739859058076187_origin.png/20230925/os-html.png#pic_center]