In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
preambular
This tutorial installs the latest version of. Since NAS makes it run very stably, try not to install software that can not be installed.
I. Preparations
[Update System]
Nothing, just wanted to use the latest one.
Right-click on Start-> Settings-> Updates & Security
II. Smaba
[Installation]
Official website: www.samba.org/
Command flow:
cd /source/wget https://download.samba.org/pub/samba/samba-latest.tar.gztar -zxvf samba-latest.tar.gzcd samba-latest
[Configuration]
Download here is my vs2017 generated ASP.NET core, demo only!
mkdir /web/wwwcd /web/wwwwget https://files.cnblogs.com/files/project/webapp.tar.gztar -zxf webapp.tar.gz
III. Supervisor
[Installation]
Official website: www.supervisord.org/
Command flow:
yum install -y supervisor
[Configuration]
1. Copy files
mkdir /web/supervisorcp /etc/supervisord.conf /web/supervisor
2. Open supervisor.conf
vim /web/supervisor/supervisord.conf
3. Add the following
[program:webapp]command=dotnet webapp.dll ; command to execute directory=/web/www/ ; Directory where command is executed autostart=true Autostart =true ; whether to restart automatically stderr_logfile=/var/log/webapp.err.log ; standard error log stdout_logfile=/var/log/webapp.out.log ; standard output log
[Operation]
supervisord -c /web/supervisor/supervisord.conf
IV. Nginx
[Installation]
Official website: nginx.org/
Command flow:
rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpmyum install -y nginx
[Configuration]
1. Copy files
mkdir /web/nginxcp /etc/nginx/nginx.conf /web/nginxcp /etc/nginx/mime.types /web/nginx
2. Open nginx.conf
vim /web/nginx/nginx.conf
3. Amend as follows
worker_processes 1;events { worker_connections 1024;}http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; gzip on; server { listen 80; server_name localhost; location / { proxy_pass http://127.0.0.1:5000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection keep-alive; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_cache_bypass $http_upgrade; } }}
[Operation]
nginx -c /web/nginx/nginx.conf
V. Effect preview
Common commands
nginx
# nginx //Start nginx# nginx -s reload //Restart nginx# nginx -s stop //close nginx
supervisor
supervisordsupervisorctl status //View all task status supervisorctl shutdown //Close all tasks supervisorctl start| stop| restart all //control all processes supervisorctl start| stop| restart program_name //Control target process
The above is all the content of this article, I hope to help everyone's study, but also hope that everyone a lot of support.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.