nginx服务常用操作

#查看nginx服务状态
systemctl status nginx.service
#启动nginx服务
systemctl start nginx.service
#停止nginx服务
systemctl stop nginx.service
#重启nginx服务
systemctl restart nginx.service
#重新读取nginx配置(这个最常用, 不用停止nginx服务就能使修改的配置生效)
systemctl reload nginx.service

启动nginx报错:Failed to start The nginx HTTP and reverse proxy server

对于报错的描述是Address already in use,说明端口被占用:

Jun 01 09:54:24 cloud-codec-test-1cd7f2e4d.qiyi.virtual nginx[47909]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Jun 01 09:54:24 cloud-codec-test-1cd7f2e4d.qiyi.virtual nginx[47909]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Jun 01 09:54:25 cloud-codec-test-1cd7f2e4d.qiyi.virtual nginx[47909]: nginx: [emerg] bind() to 0.0.0.0:8900 failed (98: Address already in use)
Jun 01 09:54:25 cloud-codec-test-1cd7f2e4d.qiyi.virtual nginx[47909]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Jun 01 09:54:25 cloud-codec-test-1cd7f2e4d.qiyi.virtual nginx[47909]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)

查看被占用端口:

kill占用端口:kill -9 49147

重新启动nginx,成功

Failed to start The nginx HTTP and reverse proxy server相关推荐

  1. nginx启动报错 :Failed to start The nginx HTTP and reverse prox...er.

    问题 : 80端口被占用 解决办法 : 先查看进程 然后停止apache服务 启动nginx服务 查看nginx服务状态 或者 更改nginx端口 编辑配置文件 vim /etc/nginx/ngin ...

  2. nginx: [emerg] getpwnam(nginx) failed in /usr/local/nginx/conf/nginx.conf:2

    启动nginx报错: nginx: [emerg] getpwnam("nginx") failed in /usr/local/nginx/conf/nginx.conf:2 是 ...

  3. Failed to start SYSV: HA-Proxy is a TCP/HTTP reverse proxy which is particularl

    Failed to start SYSV: HA-Proxy is a TCP/HTTP reverse proxy which is particularl 一.错误问题 二.原因:忘记注释该服务自 ...

  4. 报错:ERROR: for nginx Cannot start service proxy;for proxy Cannot start service proxy;......

    报错 [root@client opt]# sh /usr/local/harbor/install.sh[Step 0]: checking installation environment ... ...

  5. 【转】nginx提示:500 Internal Server Error错误的解决方法

    [转]nginx提示:500 Internal Server Error错误的解决方法 参考文章: (1)[转]nginx提示:500 Internal Server Error错误的解决方法 (2) ...

  6. 反向代理服务器(Reverse Proxy)

    反向代理服务器(Reverse Proxy) 普通代理服务器是帮助内部网络的计算机访问外部网络.通常,代理服务器同时连接内网和外网.首先内网的计算机需要设置代理服务器地址和端口,然后将HTTP请求发送 ...

  7. YARP(Yet Another Reverse Proxy)是使用 .NET 构建的高度可定制的反向代理

    点击上方蓝字 关注我们 (本文阅读时间:16分钟) YARP 1.0已经发布了,现在可以从 NuGet 下载.YARP(Yet Another Reverse Proxy)是使用 .NET 构建的高度 ...

  8. 逆向代理服务器(Reverse Proxy)原理及用途

    本文内容翻译自 wiki:Reserve server 有逆向代理服务器,肯定就有正向的代理服务器(Proxy Server),下面介绍他们的原理 Proxy Servr原理: 两台电脑 通过第三台电 ...

  9. Android编译错误 Jack server failed to ,SSL error when connecting to the Jack server. Try ‘jack-diagnose‘

    一.编译android sdk 出现下面的错误 Jack server failed to (re)start,try 'jack-diagnose' or see Jack server log,S ...

  10. 如何解决hadoop文件无法浏览问题“Failed to retrieve data from /webhdfs/v1/?op=LISTSTATUS: Server Error“

    搭建好了hadoop环境后,namenode.datanode看着都是正常的.但是当点到browser the file system时,结果报错了,报错的内容是"Failed to ret ...

最新文章

  1. Bowtie下载安装
  2. 【思考?】什么时候会触发这个策略呢?
  3. Elasticsearch Mapping 详解
  4. oracle 磁盘不分区吗,LINUX停ORACLE软件、数据文件等所在的磁盘分区空间不足的解决思路...
  5. java number转string_Java Number类, Character类,String类
  6. AVFoundation – AVMetadataItem 获取媒体属性元数据
  7. 位操作实现加减乘除四则运算
  8. 物理搬砖问题_搬砖问题 - jeff_nie - 博客园
  9. Delphi输出日志的方法
  10. view-design 组件库表格筛选条件联动保留前面筛选条件的高亮状态
  11. 计算机图形学01:直线生成算法(DDA算法)
  12. Android中的Glide
  13. 如何修改wincc服务器画面,关于OS站的wincc画面修改的问题-工业支持中心-西门子中国...
  14. 七牛云上传图片和视频
  15. 全国计算机等级报名12,全国计算机等级考试12月20日开始报名!注意事项请查收!...
  16. JavaScript---开通QQ在线客服
  17. 快来直播:仓库是时候实施物联网了吗
  18. 瑞萨,尝试flash刷写代码放到ram中,OK
  19. LSI阵列卡查看SSD寿命
  20. 发那科系统整套梯形图设计 FANUC全套PMC设计 发那科标 准PLC 完美解决方案

热门文章

  1. 重磅!开放EasyCharts插件源代码!
  2. Vulkan开发实战详解
  3. 安装Keil uVision5 破解失败
  4. 研磨设计模式-设计模式的基础-设计模式有什么
  5. OPERA固定价格学习
  6. 图像型PDF如何免费转换成可编辑的文字
  7. oracle两天教程,Linux菜鸟的两天Oracle安装生活
  8. Oracle 分析函数
  9. Hbase 深度使用分析
  10. win10 任务管理器显示GPU占用率