We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nginx是一个高性能的HTTP和反向代理服务器;我的vps下安装的是32位的centos系统;
$ yum info nginx
在yum里没有对应的nginx包
然后我就去找各种文章,也去过centos中文网搜相关文章,大部分都是下载二进制文件,然后编译!找了好几篇centos下安装nginx的文章,每篇内容都不太一样,一些细节处也写的不太清楚;我自己折腾了半天,怎么都编译不成功!
$ wget https://nginx.org/packages/rhel/6/i386/RPMS/nginx-1.8.1-1.el6.ngx.i386.rpm
$ rpm -ivh nginx-1.8.1-1.el6.ngx.i386.rpm
$ /etc/init.d/nginx start
nginx默认安装在 /usr/local/nginx
重启nginx
$ cd /usr/local/nginx/sbin $ nginx -s reload
nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
$ yum install epel-release //添加epel源 $ yum install nginx //安装nginx
The text was updated successfully, but these errors were encountered:
No branches or pull requests
nginx是一个高性能的HTTP和反向代理服务器;我的vps下安装的是32位的centos系统;
一、遇到的坑
在yum里没有对应的nginx包
然后我就去找各种文章,也去过centos中文网搜相关文章,大部分都是下载二进制文件,然后编译!找了好几篇centos下安装nginx的文章,每篇内容都不太一样,一些细节处也写的不太清楚;我自己折腾了半天,怎么都编译不成功!
二、另辟蹊径
三、简单用法
nginx默认安装在 /usr/local/nginx
重启nginx
$ cd /usr/local/nginx/sbin $ nginx -s reload
四、PS
五、补充
The text was updated successfully, but these errors were encountered: