当前位置: 首页 > 新闻动态 > 软件编程

Debian7编译安装nginx简明教程

作者:用户投稿 浏览: 发布日期:2026-01-16
[导读]:这篇文章主要介绍了Debian7编译安装nginx简明教程,本文直接给出操作命令和步骤,需要的朋友可以参考下

Debian 7编译nginx前的准备工作:
复制代码 代码如下:
apt-get install -y gcc make vim
apt-get install  libpcre+*
apt-get install -y grep zlib1g*
apt-get install -y libssl1.0.0
apt-get install -y libssl-dev

编译nginx:
复制代码 代码如下:
ufo@ufo:~/$ tar zxvf nginx-1.6.2.tar.gz
ufo@ufo:~/$ cd nginx-1.6.2/
ufo@ufo:~/nginx-1.6.2$ ./configure
ufo@ufo:~/nginx-1.6.2$ make
ufo@ufo:~/nginx-1.6.2$ make install

执行nginx 程序:
复制代码 代码如下:
ufo@ufo:~/nginx-1.6.2$ sudo /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
ufo@ufo:~/nginx-1.6.2$ ps aux | grep nginx
root      41764  0.0  0.0  28240   768 ?        Ss   11:57   0:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
nobody    41765  0.0  0.1  28668  1412 ?        S    11:57   0:00 nginx: worker process                                         
ufo       41767  0.0  0.0   8064   872 pts/1    S+   11:58   0:00 grep nginx

免责声明:转载请注明出处:http://m.lexweb.cn/news/448320.html

扫一扫高效沟通

多一份参考总有益处

免费领取网站策划SEO优化策划方案

请填写下方表单,我们会尽快与您联系
感谢您的咨询,我们会尽快给您回复!