【发布时间】:2018-09-13 03:09:00
【问题描述】:
我正在尝试在 centOS 7 上安装 Nginx,但我不断收到此错误
[nginx error][1]
[1]: https://i.stack.imgur.com/iwMhQ.png
Things I have tried:
-Yum Clean All
-Installed Epel-release
-Tried to install apt-get,wget, and unzip but receive the same errors
- created a yum repo for nginx with the following:
[nginx]
name=nginx repo
baseurl= ht tp://n ginx.org /packages/centos/7/$basearch/
gpgcheck=0
enabled=1
- sudo yum -y install nginx httpd-tools
- sudo vi /etc/nginx/nginx.conf
如果有人知道我如何解决这个问题或知道在 centos7 上安装 ELK Stack 的替代方法,将不胜感激,谢谢!
【问题讨论】:
-
请正确格式化您的问题。对于初学者,请确保图像可见(或者如果可能,只需将控制台/错误日志发布为文本)。
-
baseurl 中真的有一些空格吗?就像'ht tp'和同一行中的另外两个空格。不应该有任何空间。
标签: centos installation centos7 yum