如何利用nginx在Centos上搭建文件服务器

第一步:创建export文件夹 其下soft文件夹和server文件夹 soft放软件压缩包,server放解压安装后的软件

第二步:yum -y install make gcc-c++ zlib zlib-devel libtool openssl openssl-devel libpcre3 libpcre3-dev 下载gcc 依赖环境安装

第三步:tar -zxvf nginx-1.18.0.tar.gz -C /export/server/

第四步:./configure --prefix=/export/server/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre 生成makefile文件

第五步:make 编译

第六步:cd /export/server/nginx-1.18.0/

make install 安装

未编辑完,后续还要在conf里进行修改,后面完善

下面是各种命令

cd /export/server/nginx/sbin

#查看版本

./nginx -v

#启动nginx

./nginx

#关闭nginx

./nginx -s stop

#重新加载nginx.conf配置文件

./nginx -s reload

相关推荐
啊吧怪不啊吧3 小时前
UU远程协助迎来升级!第一期更新实测
运维·服务器·远程工作
cuijiecheng201810 小时前
Linux下Beyond Compare过期
linux·运维·服务器
期待のcode10 小时前
前后端分离项目 Springboot+vue 在云服务器上的部署
服务器·vue.js·spring boot
AI 智能服务10 小时前
第6课__本地工具调用(文件操作)
服务器·人工智能·windows·php
松涛和鸣13 小时前
49、智能电源箱项目技术栈解析
服务器·c语言·开发语言·http·html·php
凉、介13 小时前
SylixOS 中的 Unix Socket
服务器·c语言·笔记·学习·嵌入式·sylixos
RisunJan13 小时前
Linux命令-ipcs命令(报告进程间通信(IPC)设施状态的实用工具)
linux·运维·服务器
HABuo14 小时前
【Linux进程(四)】进程切换&环境变量深入剖析
linux·运维·服务器·c语言·c++·ubuntu·centos
橘颂TA15 小时前
【Linux】死锁四条件的底层逻辑:从锁冲突到 STL 组件的线程安全实践(Ⅵ)
linux·运维·服务器·c++·死锁