公司有台老服务器,搭的php的环境,有个负载均横的服务 调用 curl_init 的时候报了 Problem with the SSL CA cert (path? access rights?) 网上各种脑补

yum install ca-certificates
yum reinstall ca-certificates

当我用 rpm -V ca-certificates 这个命令时的确没有输出

[root@app1 certs]# rpm -V ca-certificates
[root@app1 certs]# ls
Makefile ca-bundle.crt ca-bundle.trust.crt cacert.pem make-dummy-cert renew-dummy-cert
[root@app1 certs]# mv ca-bundle.crt.bak
mv: missing destination file operand after `ca-bundle.crt.bak'
Try `mv --help' for more information.
[root@app1 certs]# mv ca-bundle.crt ca-bundle.
ca-bundle.crt ca-bundle.trust.crt
[root@app1 certs]# mv ca-bundle.crt ca-bundle.crt.bak
[root@app1 certs]# ls
Makefile ca-bundle.crt.bak ca-bundle.trust.crt cacert.pem make-dummy-cert renew-dummy-cert
[root@app1 certs]# mv cacert.pem ca-bundle.crt
[root@app1 certs]# rpm -V ca-certificates
S.....T. c /etc/pki/tls/certs/ca-bundle.crt

一阵命令如虎的操作,显示出来了

最后重启了一下 php-fpm

[root@app1 certs]# service php-fpm restart
Restarting php-fpm daemon: php-fpm[-Feb- ::] ERROR: unable to bind listening socket for address '10.47.97.153:9000': Address already in use ()
[-Feb- ::] ERROR: FPM initialization failed
already running.

发现报错了子,心都是慌的,这个大概是把 php-fpm 进程给干掉,然后 nginx 自动会启新的 php-fpm ,刷一变报502,刷2变就正常了

到此问题解决了,突然还是发现 docker 好,至少镜像出了问题,可以在镜像里面解决.

分别参考:

https://stackoverflow.com/questions/15135834/php-curl-curlopt-ssl-verifypeer-ignored#comment78570660_15237205

https://www.centos.org/forums/viewtopic.php?t=3711

最新文章

  1. Apache Shiro系列之五,概述 —— 配置
  2. 在Heroku部署时,无法加载 css,js,图片资源解决办法
  3. [转]hibernateTools工具安装及使用总结(eclipse 3.6)
  4. Word设置首页不同
  5. Apizza可以进行本地调试,也可以进行跨域调试,但是需要chrome插件
  6. vc6.0快捷键大全
  7. python BeautifulSoup4
  8. CrashHandler: java.lang.NullPointerException
  9. Update startup files更新安装文件
  10. VS为VC++添加UAC控制(VC程序默认管理员运行)
  11. 算法:最大子数组own
  12. java_十进制数转换为二进制,八进制,十六进制数的算法
  13. appDelegate中的委托协议方法以及使用观察者模式获取其触发方法
  14. MYSQL存储过程中的IN、OUT和INOUT
  15. Android 高级UI设计笔记01:使用ExpandableListView组件(ListView的扩展)
  16. 数学(GCD,计数原理)HDU 5656 CA Loves GCD
  17. c++绘图软件<一>
  18. Robust PCA via Outlier Pursuit
  19. laravel 服务容器
  20. elementUI 日期 周一、周二、周三、周四、周五、周六、周日快捷键

热门文章

  1. @NotNull @NotEmpty @NotBlank区别
  2. HDFS概述
  3. 汇编语言笔记v1.0
  4. Python——Selenium & Chrome Driver配置
  5. flask+mod_wsgi+apache在windows上的布署
  6. springMVC中数据流解析与装载
  7. 安装hue及hadoop和hive整合
  8. 找出链表中倒数第K个结点
  9. IDEA中 GIT与SVN版本控制插件的切换
  10. 2018-2019-2 20175306实验二面向对象程序设计《Java开发环境的熟悉》实验报告