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

Centos6.5 's method of installing nginx through yum

2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces the relevant knowledge of "centos6.5 method of installing nginx through yum". Xiaobian shows you the operation process through actual cases. The operation method is simple and fast and practical. I hope this article "centos6.5 method of installing nginx through yum" can help you solve the problem.

Here are: Centos6.5 Install nginx via yum

Note no package nginx available Need to install epe first:

yum install epel-release

After installing epel

yum -y install nginx

after the installation is complete

service nginx start Start nginx

You can see the nginx interface when you visit the machine ip in your browser.

If not, check the linux firewall status. Added 80 port access

After nginx starts, we need to modify the configuration file as needed, you can use ps-ef first| grep nginx View

Here is the configuration file currently used by nginx

worker_processes is generally set to system kernel count (see system kernel count more /proc/cpuinfo| grep "physical id"| grep "0"| wc -l)

/etc/nginx/conf.d/contains additional configuration files.

Then configure it here, such as the location of some static resources.

For example, I want all files under/data/html to be accessed through nginx Load Balancer. Simply modify the following configuration:

About "centos6.5 through yum installation nginx method" content is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the industry information channel. Xiaobian will update different knowledge points for you every day.

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