Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Jexus server to run Asp.Net Core2.0 program

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "how to use Jexus server to run Asp.Net Core2.0 program". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to use Jexus server to run Asp.Net Core2.0 program".

Today, I will introduce the configuration method of. Net core using jexus server.

About the introduction of Jexus, you can learn about it on the website https://www.jexus.org/. The current version is V5.8.3. The installation of jexus is very simple. According to the official website, the installation of jexus can be completed by executing the following command.

Curl https://jexus.org/release/x64/install.sh|sudo sh

Just download and execute a sh script. Let's see what's written in the script.

Open it and see that the steps are very clear.

The server I am currently using is the first time CentOS7.0+, has executed a jexus script without any exceptions. Because my server has NGINX installed, I shut down the Nginx process first to avoid port conflicts. After the installation is successful, we can see the relevant files and configuration information in the / usr/jexus directory, our site configuration, mainly in the sitconfig folder.

By default, there is a file for default. Open it and take a look:

It's just some configuration information about the site. So I created a new configuration file, a configuration file called api.xxx.com, and copied the default contents to that file. According to the application, configure the parameters:

In addition, the. Net core environment has been installed on my server, and the main configuration information is as follows:

Port configures the listening port, and root specifies the root directory of the current project. Hosts defaults. In AppHost, the command to start the application and the root directory and port of the website are specified.

After completing the above configuration, we can execute the jexus startup command.

Sh / usr/jexus/jws start

Common jexus commands:

Jexus includes the following operation commands (first cd / usr/jexus): start: sudo. / jws start stop: sudo. / jws stop restart: sudo. / jws restart

You can also specify which site to start / stop / restart after jws start, such as:

Sudo. / jws start api.xxx.com

Start is followed by the configuration file name!

After performing the above operations, we can see the running. Net core program!

Borrow some words from the Internet about the benefits of using jexus!

1. Easy to configure: on Jexus, Asp.net core is just a "site" on Jexus, so you only need to configure this site on Jexus. No other configuration is needed.

2. Unified operation: Jexus stops the asp.net core application automatically when it stops this site. Similarly, starting this site automatically starts the corresponding core application without long operation.

3. High performance: Jexus itself is a high-performance Web server with the same performance as nginx, while the relationship between Jexus and Asp.net core is TCP forwarding, not HTTP forwarding such as reverse proxy, and there is no performance consumption of Http protocol parsing and reorganization. Therefore, Jexus can better present the high performance advantages of Asp.net Core.

4. Port adaptation: on Jexus, asp.net core does not need to set any port numbers, thus effectively avoiding port conflicts that may occur in multiple asp.net core applications, which is a headache for operators.

5. High reliability: if the core application crashes unexpectedly, Jexus will pull it up immediately so that it can run continuously from 7 to 24.

6. Support WebSocket: because it is TCP forwarding, there is no restriction on application layer protocols.

7. The port value of AppHost is set to 0 to get the advantage of port adaptation.

Thank you for your reading, the above is the content of "how to use Jexus server to run Asp.Net Core2.0 program". After the study of this article, I believe you have a deeper understanding of how to use Jexus server to run Asp.Net Core2.0 program, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report