Install dotnet core environment
1. Product source added dotnet
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc sudo sh -c 'echo -e "[packages-microsoft-com-prod]\nname=packages-microsoft-com-prod \nbaseurl= https://packages.microsoft.com/yumrepos/microsoft-rhel7.3-prod\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/dotnetdev.repo'
2. Install the .NET SDK
sudo yum update sudo yum install libunwind libicu sudo yum install dotnet-sdk-3.1
3. Install ASP.NET Core run
sudo yum install aspnetcore-runtime-3.1
4. Run the installation .NET Core
sudo yum install dotnet-runtime-3.1
After installation, enter the command dotnet --info If Version version appears, install .net core, you can continue to the next step.
Install nginx
1. Add Nginx warehouse
sudo yum install epel-release
2. Install Nginx
sudo yum install nginx
3. Start Nginx
sudo systemctl start nginx
4. The firewall allows HTTP and HTTPS transmission
sudo firewall-cmd --permanent --zone=public --add-service=http sudo firewall-cmd --permanent --zone=public --add-service=https sudo firewall-cmd --reload
5.Nginx boot
sudo systemctl enable nginx
6. Open nginx.conf profile configuration port 80 by default (because I use port 80 in other places, where I configured port 8000, finished configuring nginx -t can be performed to check the configuration is correct)
server { listen 8000 default_server; listen [::]:8000 default_server; server_name _; root /usr/share/nginx/html; # Load configuration files for the default server block. include /etc/nginx/default.d/*.conf; location / { } error_page 404 /404.html; location = /40x.html { } error_page 500 502 503 504 /50x.html; location = /50x.html { } }
7. Access ip + port is running in a browser