启动postgresql: brew services start postgresql

报错信息如下:

Error: Failure while executing; `/bin/launchctl bootstrap gui/501 /Users/xxx/Library/LaunchAgents/homebrew.mxcl.postgresql@14.plist` exited with 5.

vi /Users/xxx/Library/LaunchAgents/homebrew.mxcl.postgresql@14.plist这个文件

接着查看log: vi /usr/local/var/log/postgresql@14.log

可以看到 这个错误:could not open lock file "/tmp/.s.PGSQL.5432.lock": Permission denied

一开始一直以为权限问题,执行chmod,删除都没有作用。

后百度,发现不是这个文件的问题,在试验脚本的过程中没关闭数据库。执行ls -l /tmp/,列出隐藏文件,删除tmp下跟postgresql有关的隐藏文件就ok了。

参考链接:

pg启动异常FATAL: could not open lock file "/tmp/.s.PGSQL.5432.lock": Permission denied_sunshinepx的博客-CSDN博客

pg启动异常:Error: Failure while executing; `/bin/launchctl bootstrap gui/501相关推荐

  1. Mac系统brew install 安装报错 Error: Failure while executing

    Mac安装Apache http服务器,brew install httpd 时报错 报错信息如下: ==> Installing httpd dependency: nghttp2 ==> ...

  2. 处理一次 MYSQL 启动异常 Error writing file '/tmp/MYYEBa32' (Errcode: 28 - No space left on device)

    背景:测试同事的存储过程,发现其错误日志有 : Error writing file '/tmp/MYQUn0a7' (Errcode: 28 - No space left on device) 判 ...

  3. 解决Homebrew报错Error: Failure while executing; git clone https://github.com/Homebrew/homebrew-core....

    cd "$(brew --repo)/Library/Taps/" rm -rf homebrew mkdir homebrew cd homebrew git clone git ...

  4. 解决Homebrew报错Error: Failure while executing;

    cd "$(brew --repo)/Library/Taps/" rm -rf homebrew mkdir homebrew cd homebrew git clone git ...

  5. Error: Failure while executing; git clone https://github.com/Homebrew/homebrew-core

    cd "$(brew --repo)/Library/Taps/" rm -rf homebrew mkdir homebrew cd homebrew git clone git ...

  6. 记一次Jenkins 打包异常 ERROR: Exception when publishing, exception message [Failure]

    记一次Jenkins 打包异常 ERROR: Exception when publishing, exception message [Failure] 参考文章: (1)记一次Jenkins 打包 ...

  7. Spring boot 项目Kafka Error connecting to node xxx:xxx Kafka项目启动异常 Failed to construct kafka consumer

    Spring boot 项目Kafka Error connecting to node xxx:xxx Spring boot Kafka项目启动异常 新建了一个springBoot集成Kafka的 ...

  8. elasticsearch安装 及 启动异常解决

    虚拟机使用net连接模式 1 Download and unzip the latest Elasticsearch distribution 2 Run bin/elasticsearch on U ...

  9. 【Promise】入门-同步回调-异步回调-JS中的异常error处理-Promis的理解和使用-基本使用-链式调用-七个关键问题

    文章目录 1. 预备知识 1.1 实例对象与函数对象 1.2 两种类型的回调函数 1. 同步回调 2. 异步回调 1.3 JS中的异常error处理 1. 错误的类型 2. 错误处理(捕获与抛出) 3 ...

最新文章

  1. linux下载哪个python版本-Linux安装多个Python版本
  2. 【干货分享】云服务平台的架构及优势(上)
  3. Android 程序适应多种多分辨率
  4. openssl aes加解密的使用
  5. 如何屏蔽PHP浏览器头信息X-Powered-By
  6. 如何设计让用户喜欢且令人尖叫的产品?
  7. Oracle中procedure和function创建举例
  8. bootstrap 一排5个_Bootstrap5 列(Columns)
  9. c语言江宝钏实验六答案,C语言程序设计江宝钏著实验六答案
  10. SpringMVC RedirectView的使用以及源码分析
  11. CVPR 2017精彩论文解读:综合使用多形态核磁共振数据的3D生物医学图像分割方法...
  12. Linux-zip和unzip命令
  13. 示波器上1G/S 100MHZ的含义
  14. matlab继续截止频率,关于-3db截止频率
  15. 搜款网根据关键词取商品列表 API 返回值说明
  16. 概率逗号分号_分号的用法 和逗号的区别
  17. 计算机英语考虑是,计算机英语中单词privilege和permission的区别
  18. 计算机博弈围棋,计算机博弈:“不围棋”入门教程
  19. 解决IntelliJ IDEA中打开JSP文件(使用快捷键Alt+F2)时,弹出的浏览器网页只显示JSP源码
  20. Python网络爬虫实战:《跨越星弧》TapTap玩家评论的抓取及分析

热门文章

  1. py自动化53期_开学典礼
  2. 实时 Java 社区论坛:Sym
  3. 慧通编程入门课程 - 3色彩斑斓
  4. SVN 树冲突解决详解
  5. 拼多多买家订单API
  6. easyPoi二级表头,自定义合并行列方法
  7. QLabel 在左边添加小图标
  8. Java中两种抛出异常的方式
  9. 毕业5年决定你的命运
  10. 2022/8/5 uniapp实现附近商家定位