加入收藏 | 设为首页 | 会员中心 | 我要投稿 云计算网_宿迁站长网 (https://www.0527zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

CentOS 6.3安装Nginx开启目录浏览、下载功能

发布时间:2016-01-25 09:40:26 所属栏目:Linux 来源:网络整理
导读:本次实验实现目的: 安装Nginx,Nginx开启目录浏览、下载功能,开机默认启动;咐件自带开机启动脚本、重启脚本; 1、关闭SELINUX 查看获取SELinux的状态: [root

上传一些资料到服务器上,客户端可以通IE下载;上传方法有多种,参考:

SecureCRT 安装上传(rz)和下载(sz) http://yanghuawu.blog.51cto.com/2638960/1009591

CentOS 6.3安装Nginx开启目录浏览、下载功能

13、nginx关闭进程命令

方法一

停止操作是通过向nginx进程发送信号来进行的

步骤1:查询nginx主进程号

[root@localhost ~]# ps -ef | grep nginx

在进程列表里 面找master进程,它的编号就是主进程号了。

步骤2:发送信号

从容停止Nginx:

[root@localhost ~]# kill -QUIT 主进程号

快速停止Nginx:

[root@localhost ~]# kill -TERM 主进程号

强制停止Nginx:

[root@localhost ~]# kill -9 nginx

方法二

[root@localhost ~]# yum install lsof

[root@localhost ~]# lsof -i :80

[root@localhost ~]#kill -9 进程号

14、安装过程中问题

---------------------------------------------------------------------

有报错:

./configure: error: the HTTP rewrite module requires the PCRE library.

You can either disable the module by using --without-http_rewrite_module

option, or install the PCRE library into the system, or build the PCRE library

statically from the source with nginx by using --with-pcre=<path> option.

(编辑:云计算网_宿迁站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!