php-network-getaddresses:getaddrinfo-failed:name or service not known 【故障处理】
故障代码:php-network-getaddresses:getaddrinfo-failed:name or service not known
排查命令:
1.查看网卡
cat /etc/resolv.conf
2.重启php-fpm
service php-fpm restart
故障代码:php-network-getaddresses:getaddrinfo-failed:name or service not known
排查命令:
1.查看网卡
cat /etc/resolv.conf
2.重启php-fpm
service php-fpm restart
1.查看当前php-fpm的进程数
ps -fe |grep "php-fpm"|grep "pool"|wc -l
2.查看tcp处理数
netstat -anp|grep "php-fpm"|grep "tcp"|grep "pool"|wc -l
修改hook的post-commit.tml 为post-commit
vi post-commit 编辑
添加下面命令
/usr/bin/svn update --username carshop --password 235604aa /www/wwwroot/api.com
yum update kernel
yum update kernel-devel
yum update kernel-firmware
yum update kernel-headers
yum update nss-util
yum update nss
yum update nss-sysinit
yum update nss-tools
yum update vim-minimal
yum update openssh
yum update openssh-clients
yum update openssh-server
yum update python
yum update python-libs
————————————————
升级系统内核:yum -y upgrade
升级所有包,改变软件设置和系统设置,系统版本内核都升级:yum -y update
升级所有包,不改变软件设置和系统设置,系统版本升级,内核不改变:yum -y upgrade
【版权声明】:本文为CSDN博主「天锋」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/yugui/article/details/113857930
建议您 ip addr show,查看是否有网卡信息,如没有dhclient eth0
最近发现云主机上的应用经常宕机,出现php_network_getaddresses: getaddrinfo failed
应用链接的是云数据库的地址如下
//数据库主机
'hostname' => 'gz-dadada.sql.tencentcdb.com',
// 数据库名
'database' => 'ejigsgs',
// 用户名
'username' => 'ffafa',
// 密码
'password' => 'fafaaaaa',
排查:
ping 主机网址 √
后来在国外网站找到答案:
service php -fpm restart
即可。
初步怀疑是:php进程太多导致内存泄漏 宕机 重启了就好了
git clone 出现下面报错
error setting certificate verify locations: CAfile: C:/Program Files/Git/mingw64/bin/curl-ca-bundle.crt CApath: none
解决办法:
git config --system http.sslverify false