Centos+Nginx+NetCore3.1

Centos + Nginx + NetCore3.1 deployment

 1 vs2019 first upgrade to version 16.4.0

2. Create a web application .netcore3.1

 3. Compile the project will be uploaded to the server centos

4. nginx configuration file

After modification reload ngxin. Service nginx restart

5. daemon to ensure that the program abort normal restart

In the new netcore.service etc / systemd / system, as follows

After saving the file execution

systemctl enable netcore.service

systemctl start netcore.service

View status: systemctl status netcore.service

At this point if netcore kill off the process, after a few seconds you can see the application and automatically restart

Guess you like

Origin www.cnblogs.com/pingyang/p/netcore31.html