如何利用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

相关推荐
饿了吃洗衣凝珠7 分钟前
shell循环
linux·运维·服务器
feasibility.1 小时前
电脑一天重启3次、WiFi还消失:蓝屏0x9F背后,是MT7921网卡撞上Windows电源管理
服务器·网络·windows·wifi·电脑·网卡·驱动
顧棟1 小时前
INFINI Gateway 启动过程分析
服务器·网络·gateway
xbzb4 小时前
服务器与网络:从一台裸机到能联网跑服务(5 篇)
服务器·网络·ip·raid·blog.csdn.net·article
Hhy_11074 小时前
【Linux 进击之路 · 01】起航篇:从认识操作系统到XShell 远程连接、多叉树目录体系到高频基础指令全解析
linux·服务器·后端·学习
Eyfcom4 小时前
〖物流自动化测试 03〗Chaos Mesh 在物流微服务中的故障注入:从 Pod 宕机到业务逻辑故障的工程实践
服务器·微服务·架构·快递系统·物流自动化测试
xurileidian5 小时前
第 21 篇 · 边玩边学Python · if elif else 与缩进归属
java·服务器·网络
-梅7 小时前
linux网络(1)网络聊天室与网络计算器
linux·运维·服务器
mont evergreen7 小时前
青云宗秘录:libp2p 双节点聊天阵法源码卷
服务器·网络协议·p2p
wno70415 小时前
Nginx禁止蜘蛛程序访问
运维·nginx