首页 > 系统相关 >yum nginx报错

yum nginx报错

时间:2024-02-26 13:46:09浏览次数:24  
标签:instance nginx 报错 conf as0nsoax yum root

[root@instance-as0nsoax nginx]# yum -y install gd gd-devel
error: db5 error(11) from dbenv->open: Resource temporarily unavailable
error: cannot open Packages index using db5 - Resource temporarily unavailable (11)
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:

Error: rpmdb open failed

解决如下:

[root@instance-as0nsoax nginx]# cd /var/lib/yum
[root@instance-as0nsoax yum]# ls|grep  db.
rpmdb-indexes

[root@instance-as0nsoax yum]# rm -rf rpmdb-indexes
[root@instance-as0nsoax yum]# rpm --rebuilddb
[root@instance-as0nsoax yum]# yum clean all

[root@instance-as0nsoax nginx]# nginx -t
nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory

解决如下:

yum -y yum -y install gd gd-devel

[root@instance-as0nsoax yum]# nginx -t
nginx: the configuration file /opt/nginx/conf/nginx.conf syntax is ok
nginx: [emerg] getpwnam("nginx") failed

解决如下:

[root@instance-as0nsoax yum]# useradd -s /bin/nologin -M nginx
[root@instance-as0nsoax yum]# nginx -t
nginx: the configuration file /opt/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /opt/nginx/conf/nginx.conf test is successful

  

 

标签:instance,nginx,报错,conf,as0nsoax,yum,root
From: https://www.cnblogs.com/vzhangxk/p/18034161

相关文章

  • vscode报错,nodemon 在此系统上禁止运行脚本
    1.vscode报错,nodemon:因为在此系统上禁止运行脚本注意:不仅仅适用于nodemon报错,报在此系统上禁止运行脚本的错都可以用以下方法解决2.报错原因分析:windows为了安全,默认的执行策略为Restricted,因此需要将执行策略设置为RemoteSigned即可3.解决方法  (1)get-exec......
  • Jenkins下载插件报错
    只要看日志报了什么错下载超时更新代理源https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json报unabletofindvalidcertificationpathtorequestedtarget需要ssl认证,两种解决办法跳过ssl检查https://mirrors.tuna.tsinghua.edu.cn/jenkin......
  • idea 报错 Directory '/Users/codes/other/tool-box/tool-box' does not contain a Gr
    idea报错Directory'/Users/codes/other/tool-box/tool-box'doesnotcontainaGradlebuild. Gradlebuild时提示IDEAThespecifiedprojectxxxxdirectorydoesnotexist.前提因为我之前想自己开发一个将sql文件格式化的插件,中途放弃直接用程序写完了,插件开发时用的......
  • Nginx之概念
      服务器     服务器的概念分为两种:1主机 2运行程序容器 Nginx概述Nginx(enginex)是一个高性能的HTTP和反向代理web服务器,同时也提供了IMAP/POP3/SMTP服务。Nginx是一款轻量级的Web服务器/反向代理服务器及电子邮件(IMAP/POP3/SMTP)代理服务器。 Nginx的特......
  • Docker-常见报错和解决办法
    1、问题1: error:RPCfailed;result=18,HTTPcode=200MiB|181.00KiB/s##gitclonehttps://github.com/apache/doris.gitCloninginto'doris'...remote:Enumeratingobjects:505750,done.remote:Countingobjects:100%(30319/30319),done.remote:C......
  • EasyBlogImageForTypora 上传报错,重新配置
    EasyBlogImageForTypora上传报错,重新配置先前使用EasyBlogImageForTypora上传图片正常,但是最近报错了(先前没弄明白报错原因,下载了项目代码,手动进行了调试)。上传图片接口服务器方法如下:查看VS监视结果发现:此时突然发现UserName与Password应该保持一致,是WebLogApi的参数,于......
  • conda报错、anconda报错:requests.exceptions.JSONDecodeError: Expecting value: line
    anconda报错,报错信息:requests.exceptions.JSONDecodeError:Expectingvalue:line1column1(char0)不能使用conda新建环境和安装library库,网上搜索相关问题后发现是之前配置的第三方源地址出现了问题。解决方法:shell中输入命令:condaconfig--remove-keychannels......
  • 解决nvidia-smi报错:NVIDIA-SMI has failed because it couldn‘t communicate with th
    昨天一切正常,今天ubuntu启动突然卡住了,一直停在黑屏光标界面。在网上看到原因可能和nvidia驱动有关。输入nvidia-smi报出题目中的错误。一般这种错误都是在刚安装nvidia驱动后第一次启动可能出现,见我这篇文章。不过这次是突然出现的,不是安装驱动后出现的,所以不是安装nvidia驱......
  • nginx
    226worker_processes1;events{worker_connections1024;}http{includemime.types;default_typeapplication/octet-stream;sendfileon;keepalive_timeout65;server{listen80;server_name......
  • nginx负载均衡
    sudoyuminstall-yyum-utilssudoyum-config-manager--add-repohttps://rpm.releases.hashicorp.com/RHEL/hashicorp.reposudoyum-yinstallconsulunzipconsul_1.9.4_linux_amd64.zipmvconsul/usr/local/bin/consulversionconsul常用命令consul命令 描述agent 运行......