root@ubuntu:/usr/local/nginx/sbin# nginx -t
The program 'nginx' can be found in the following packages:* nginx-core* nginx-extras* nginx-full* nginx-light
Try: apt install <selected package>


原因 :软件安装有问题,编译不对。
解决办法:
方法一、使用绝对路径

root@ubuntu:/usr/local/nginx/sbin# sudo /usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful


方法二、(

nginx报错The program 'nginx' can be found in the following packages相关推荐

  1. 关于nginx报错/usr/share/nginx/html/jiankongshare failed (2: No such file or directory)的问题解决...

    nginx的location虚拟目录配置: monitor.conf server {       server_name   monitor.chinasoft.com;       server_ ...

  2. 启动nginx报错/usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot ope

    在启动nginx时报错 [zzq@weekend110 pcre-8.39]$ sudo /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx ...

  3. php curl nginx 报错,docker,nginx,php使用curl报错?

    nginx错误日志 2020/02/12 08:44:29 [error] 7#7: *3 recv() failed (104: Connection reset by peer) while re ...

  4. nginx 报错 99: Cannot assign requested address

    为什么80%的码农都做不了架构师?>>>    nginx 报错 99: Cannot assign requested address net.ipv4.ip_local_port ...

  5. Nginx报错:nginx: [emerg] CreateFile() nginx.conf“ failed (3: The system cannot find the path specified

    windows下启动nginx报错: nginx: [emerg] CreateFile() "D:\桌面\nginx-1.12.0/conf/nginx.conf" failed ...

  6. [nginx报错]---unknown directive chunkin in /XXXXX/XXXXXX:XX的几种解决方式

    问题: nginx报错:unknown directive "chunkin" in /XXXXX/XXXXXX:XX 解决: 当出现unknown directive,一般有个反 ...

  7. nginx 报错 upstream timed out (110: Connection timed out)解决方案

    nginx 报错 upstream timed out (110: Connection timed out)解决方案 参考文章: (1)nginx 报错 upstream timed out (11 ...

  8. nginx 启动报错 “/var/run/nginx/nginx.pid“ failed” 解决方法

    nginx 启动报错 "/var/run/nginx/nginx.pid" failed" 解决方法 参考文章: (1)nginx 启动报错 "/var/run ...

  9. [问题已处理]-[nginx]-nginx 报错 could not build server_names_hash

    nginx 报错 could not build server_names_hash 这边添加了一个比较长的域名  测试nginx配置就报如下错误 在http{}下添加 server_names_ha ...

最新文章

  1. spring InitializingBean接口分析
  2. 请用状态转换图描述一个绘制折线的对话过程_CAD画一个元器件电路符号(AD)...
  3. Exchange 2007 迁移 2010
  4. Linux下redis安装与使用
  5. kotlin学习之类委托(八)
  6. onvirt安装linux系统
  7. mysql 8.0以上重置密码
  8. jmake 编译当前目录所有c/c++单文件
  9. [JSOI2008] 最小生成树计数
  10. 微信小游戏flappy bird填坑
  11. 目前3个最受欢迎的免费、开源文件加密软件评测
  12. 用什么软件测试电脑硬件的问题,新电脑检测软件-我买了新电脑,用什么软件测试比较好?最好还能看见自己详细配置的软 爱问知识人...
  13. RabbitMQ heartbeat原理
  14. 物联网专业要学c语言吗,物联网应用技术专业是文科还是理科
  15. 基于蜂群对花蜜需求所做的数量模型构建及分析
  16. 工具类 - 生成6位短信验证码
  17. Agilent RF fundamentals (7) Oscillator characterization
  18. delphi5开发人员指南_建立开发人员职位的黄金指南
  19. python用matplotlib画皮卡丘_matplotlib常用用法总结(持续更新)
  20. CAXA电子图版2016破解补丁

热门文章

  1. ubuntu联网_Ubuntu物联网操作系统新版发布,支持10年安全更新,镜像仅280M
  2. 如何确定电脑主板坏了_原阳县地暖漏水如何检测
  3. LTE学习:PDCCH信道
  4. 创建数据账号只有个别表的权限_创建MySQL用户 赋予某指定库表的权限
  5. iview使用之怎样通过render函数在table组件表头添加图标及判断多个状态
  6. JavaScript变量复制
  7. OpenSSL生成RSA公私钥(java)
  8. Access SqLDbHelper
  9. 手机号码验证的正则表达式(17......)
  10. 解决cxgrid主从表数据显示不全的问题