当前位置:网站首页>Centos8 (liunx) deploying WTM (asp.net 5) using PgSQL
Centos8 (liunx) deploying WTM (asp.net 5) using PgSQL
2022-07-26 10:33:00 【Miners learn programming】
One 、 Preface
For use all the time Windows For server developers , Just beginning to use liunx The server really doesn't adapt . Fortunately, there are artifacts like pagoda panels to help slowly from Windows Service transition to liunx The server . To be honest, it took a while ,liunx The server and pgsql It feels really fragrant .
Two 、 preparation
Use vm install centos virtual machine .
3、 ... and 、 Install the pagoda panel
1、 To the pagoda panel Official website obtain centos Installation command for .
ccentos Installation script for .
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh2、 After installation , Enter the pagoda panel directly in the virtual machine . It could be this machine IP:8888/+ Safe access , It can also be 127.0.0.1:8888/+ Safe access .
3、 The first thing that came in , I suggest you don't worry about the installation environment , Instead, first modify the security entry of the panel , Account and password .

4、 Installation environment
The configuration I use here is nginx+pure-Ftpd+pgsql+ System firewall . I have to say here pg Manager , Can help install different versions pg database , And create a new database with users , It's so sweet .

5、 use pg Manager installs the corresponding version , I have installed 13.

Here the environment is installed .
Four 、 install .NET Core SKD perhaps Runtime
If you install SDK Words , There is no need to install additional Runtime 了 ,SKD Contained in the Runtime. Here I test .NET5, So in Official website Follow the steps to install .NET5 SDK.
1、 Get administrator curve
Input directly into the terminal su Just enter the password
2、 install SDK
sudo dnf install dotnet-sdk-5.03、 Or install the runtime
sudo dnf install aspnetcore-runtime-5.04、 notice complete! Post input dotnet command , appear dotnet The option to , Successful installation !

5、 Create a new... In the pagoda panel web Site .
domain name , I use virtual machine ip Address ,PHP Select pure static version .

After the new building is completed , Enter the set domain name to access .
it is to be noted that , You must set the default site . It's a pit , If not set , Will always show Your request is at Web The corresponding site was not found in the server .

Normal is

6、 Release WTM Applied to the web Site , Configure enable .
1、web Publish to folder , Everyone knows this , I won't take a screenshot .
2、 Upload to liunxweb Site .
2.1、 go in web Site , Click to enter the site directory .

2.2、 Upload the published file directly from the publishing machine , I put the whole pulish It's all uploaded .

2.3、 modify appsettings.json Database connection string .
Double click to edit after finding the file , Comparative use vim That's great .

3、 stay pg Create a new database in the manager , Account . Password and database should be consistent with appsettings.json The database connection string written in the configuration corresponds to . My access right here is everyone .

4、 start-up .NET5 Program .
4.1、 First of all, I'll go to .NET5 Program folder cd /www/wwwroot/192.168.137.128/publish
4.2、dotnet PGSqlTest.dll The access address appears http://localhost:5000 Start successfully . If something goes wrong , An error message appears , Just modify it according to the information .

4.3、 visit http://localhost:5000 See if it works , Generally, there will be problems with the verification code . We don't care , The first web The configuration. , To solve this problem .
Solve the problem that the verification code cannot be displayed. Refer to solve WTM Deploy to centos The verification code cannot be displayed to ask for this article .

5、 Modify the site configuration , Add reverse proxy . The goal is url Point to http://localhost:5000.

6、 Input ip Address access , If it can display normally WTM, be web Configuration complete .


7、 Add daemons ( Processes that have been running in the background )
Install in the software market of pagoda panel supervisor Manager , And add daemons .


When I'm done , It realizes startup and long-term automatic operation .
边栏推荐
- 【dectectron2】跟着官方demo一起做
- 【Halcon视觉】仿射变换
- 【Halcon视觉】极坐标变换
- Function templates and non template functions with the same name cannot be overloaded (definition of overloads)
- json_object_put: Assertion `jso->_ref_count > 0‘ failed.Aborted (core dumped)
- 【Halcon视觉】图像滤波
- 码云,正式支持 Pages 功能,可以部署静态页面
- [Halcon vision] affine transformation
- js下载文件,FileSaver.js导出txt、excel文件
- [socket] the three handshakes are completed in listen, and accept only takes out one connection from the queue that completes the connection
猜你喜欢
随机推荐
[socket] the three handshakes are completed in listen, and accept only takes out one connection from the queue that completes the connection
modelsim 安装教程(应用未安装)
STM32 阿里云MQTT esp8266 AT命令
Introduction to Phoenix (Level 1: Phoenix installation, level 2: Phoenix basic grammar)
Application of crosstab in SQL Server
【Halcon视觉】形态学腐蚀
【Halcon视觉】数组
Modelsim installation tutorial (application not installed)
[Halcon vision] image gray change
Google与Pixar开发Draco支持USD格式 加速3D对象传输<转发>
PLC概述
2022/07/25------字符串的排列
上传图片获取宽高
我们的Web3创业项目,黄了
Function templates and non template functions with the same name cannot be overloaded (definition of overloads)
[Halcon vision] threshold segmentation
2022pta平时训练题(1~10题字符串处理问题)
移动端H5开发常用技巧总结
The problem of incomplete or partial display of the last recyclerview is solved
Prevent XSS attacks




![[Halcon vision] affine transformation](/img/f1/32284c71e78e6eea390fdb6058ba0f.png)



![[Halcon vision] Fourier transform of image](/img/9c/d6ed4ab3e40f706f3b5b8b5cc51db9.png)
