当前位置: 首页 > news >正文

网站建设东莞老铁博客外国炫酷网站网址

网站建设东莞老铁博客,外国炫酷网站网址,自动写作网站,wordpress顶部导航#x1f468;‍#x1f393;博主简介 #x1f3c5;云计算领域优质创作者   #x1f3c5;华为云开发者社区专家博主   #x1f3c5;阿里云开发者社区专家博主 #x1f48a;交流社区#xff1a;运维交流社区 欢迎大家的加入#xff01; #x1f40b; 希望大家多多支… ‍博主简介   云计算领域优质创作者   华为云开发者社区专家博主   阿里云开发者社区专家博主 交流社区运维交流社区 欢迎大家的加入 希望大家多多支持我们一起进步 如果文章对你有帮助的话欢迎 点赞 评论 收藏 ⭐️ 加关注 文章目录 一、下载安装包二、部署Nginx服务1、安装Nginx服务需要的依赖包2、上传解压3、编译安装nginx服务 三、启动及确认服务是否正常四、nginx启动、停止、重启、检测配置命令五、常见问题报错1./configure: error: C compiler cc is not found报错2./configure: error: the HTTP rewrite module requires the PCRE library.问题3./configure: error: the HTTP gzip module requires the zlib library. 六、nginx配置模块详解七、相关文章八、推荐一个自动生成nginx配置文件的网站 一、下载安装包 官网下载地址nginx: download 选择Stable version版本下载到本地该版本为Linux版本下载完成后上传到服务器上 或者在服务器上使用wget下载 wget https://nginx.org/download/nginx-1.24.0.tar.gz二、部署Nginx服务 1、安装Nginx服务需要的依赖包 yum -y install gcc gcc-c zlib zlib-devel pcre-devel openssl openssl-devel 2、上传解压 1sz先把nginx压缩包复制到虚拟机/服务器上 2解压nginx压缩包 tar xf nginx-1.24.0.tar.gz -C /usr/src/3切换到nginx目录下 cd /usr/src/nginx-1.24.03、编译安装nginx服务 指定安装路径然后编译安装 ./configure --prefix/usr/local/nginx make make install #或者使用下面这一条命令。上面的看着清晰在哪里错了易排查问题 ./configure --prefix/usr/local/nginx make make install三、启动及确认服务是否正常 安装成功后启动Nginx服务到/usr/local/nginx/sbin目录下启动服务 /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf启动成功后查看进程 ps -ef | grep nginx或者查看端口是否启动默认端口为80 netstat -anput | grep 80确定启动之后页面访问ip 即可访问到页面 四、nginx启动、停止、重启、检测配置命令 #启动nginx服务 /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf#停止nginx /usr/local/nginx/sbin/nginx -s stop#重启nginx /usr/local/nginx/sbin/nginx -s reload#检测nginx服务配置是否有误 /usr/local/nginx/sbin/nginx -t五、常见问题 报错1./configure: error: C compiler cc is not found 完整报错 ./configure: error: C compiler cc is not found原因没有编译环境 解决yum -y install gcc gcc-c 报错2./configure: error: the HTTP rewrite module requires the PCRE library. 完整报错 ./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-pcrepath option.原因缺少pcre-devel库 解决yum -y install pcre-devel 问题3./configure: error: the HTTP gzip module requires the zlib library. 完整报错 ./configure: error: the HTTP gzip module requires the zlib library. You can either disable the module by using --without-http_gzip_module option, or install the zlib library into the system, or build the zlib library statically from the source with nginx by using --with-zlibpath option.原因缺少zlib-devel 解决yum -y install zlib-devel 六、nginx配置模块详解 这里的图是二进制安装默认的配置yum安装的与二进制安装的nginx配置会有差异但整体大概的说明都是一样的。 主要区域讲解 七、相关文章 文章标题文章连接【Linux】nginx基础篇 – 介绍及yum安装nginxhttps://liucy.blog.csdn.net/article/details/132450258【Linux】环境下部署Nginx服务 - 二进制部署方式https://liucy.blog.csdn.net/article/details/132145067nginx配置负载均衡–实战项目适用于轮询、加权轮询、ip_hashhttps://liucy.blog.csdn.net/article/details/132279414nginx快速部署一个网站服务 多域名 多端口https://liucy.blog.csdn.net/article/details/132454654 八、推荐一个自动生成nginx配置文件的网站 https://nginxconfig.io/ 可以根据你的业务需求自动生成负载的配置。 往下面翻就可以看到配置文件了
http://www.zqtcl.cn/news/487337/

相关文章:

  • 笔杆子写作网站牡丹江信息网0453免费发布信息
  • 网站建设介绍推广用语解释seo网站推广
  • 加盟企业网站建设目的速卖通下载app
  • 阳江北京网站建设网页设计与网站建设pdf
  • 做考试平台的网站网站之前没备案
  • 网站维护要多久时间北京网站优化哪家好
  • 单页推广网站模版网站建设一个购买链接
  • 湖南门户网站设计公司免费自媒体网站
  • 美食网站建设项目预算域名解析站长工具
  • 网站如何备案工信局学网站开发首先学哪些基础
  • 什么网站利于优化河北省建设局网站材料备案
  • 自学装修设计从哪里入手沈阳百度seo
  • 做jsp网站用哪些软件下载如何利用网站赚钱
  • 注册网站域名需要什么湘潭公司做网站
  • 一个网站如何优化企业资质查询平台
  • 模板网站为什么做不了优化山西网络网站建设销售公司
  • 建设什么网站可以赚钱设计本网站是用什么做的
  • 荆州市网站建设策划师
  • 苏州中国建设银行招聘信息网站中国企业登记网
  • 网站服务器的重要性新闻软文范例大全
  • 茶叶网站建设一般的风格加大志愿服务网站建设
  • 湖州医院网站建设方案网页游戏知乎
  • 以网站建设为开题报告临海门户网站住房和城乡建设规划局
  • 河南省大型项目建设办公室网站wordpress置顶功能
  • 奉化网站建设三合一网站建设多少钱
  • wordpress文章页怎么调用网站图片wordpress菜单锚点定位
  • 网站建设运营合作合同网站建设英文合同
  • wordpress chrome插件开发图片式网站利于做优化吗
  • 如何做好品牌网站建设策划app要有网站做基础
  • 横沥网站建设公司wordpress运行php