In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
1. Server version: CentOS Linux release 7.4.1708 (Core)
2. Nginx version: nginx-1.14.2.tar.gz
3. Deployment steps
/ usr/sbin/groupadd-f www / usr/sbin/useradd-g www wwwyum install-y pcre-devel openssl-develyum-y install gcc gcc-c++ autoconf automake makecd / data/applicationtar xf / data/pkg/nginx-1.14.2.tar.gzcd nginx-1.14.2./configure-prefix=/data/application/nginx-- conf-path=/data/application/nginx/conf/nginx.conf-- error-log-path=/data/application/nginx/log/error.log-- http- Log-path=/data/application/nginx/log/access.log-pid-path=/data/application/nginx/conf/nginx.pid-http-proxy-temp-path=/data/application/nginx/cache/proxy_temp-http-fastcgi-temp-path=/data/application/nginx/cache/fastcgi_temp-user=www-group=www-with-http_realip_module-with-http_gunzip_module with-http_stub_status_module with-http_ssl _ module-- with-http_gzip_static_module-- with-http_sub_module-- with-http_realip_module-- with-http_sub_module
Make & & make install
Firewall-cmd-add-port=80/tcp-permanent
Firewall-cmd-reload
4. Add self-startup:
Vim / lib/systemd/system/nginx.service
[Unit] Description=nginxAfter=network.target [Service] Type=forkingExecStart=/data/application/nginx/sbin/nginxExecReload=/data/application/nginx/sbin/nginx-s reloadExecStop=/data/application/nginx/sbin/nginx-s quitPrivateTmp=true [Install] WantedBy=multi-user.target--
Systemctl enable nginxsystemctl start nginx
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.