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

相关推荐
千舟软件16 小时前
【宿舍管理小程序】新生入住不靠纸质表
大数据·运维·服务器·科技·业界资讯
The Chosen One98518 小时前
OS第二章随手记(2.1)
linux·运维·服务器·笔记
吠品18 小时前
纯HTML+ECharts构建交互式数据看板:实现思路与踩坑记录
java·服务器·数据库
青峰客18 小时前
DeepSeek 大模型新手快速上手指南
运维·服务器·github
程序员-Benothing19 小时前
Linux查找文件命令:find、locate、which、whereis实战
linux·运维·服务器
团子股股东峥哥19 小时前
day39-RHEL-访问网络附加存储
linux·运维·服务器
程序员-Benothing20 小时前
Linux文件查看与编辑:cat、less、tail、vim快速入门
linux·运维·服务器
陈陈CHENCHEN1 天前
【Linux】服务器根目录磁盘扩容操作记录
linux·运维·服务器
沸速存储1 天前
AI 机器人靠哪些内存与存储驱动整机运行?
服务器·科技·嵌入式硬件·电脑
fengyehongWorld1 天前
Linux squid搭建基础代理服务器
linux·运维·服务器