惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Secure Thoughts
罗磊的独立博客
T
The Blog of Author Tim Ferriss
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
Last Week in AI
Last Week in AI
美团技术团队
Google Online Security Blog
Google Online Security Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
D
Docker
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
酷 壳 – CoolShell
酷 壳 – CoolShell
小众软件
小众软件
月光博客
月光博客
L
LINUX DO - 最新话题
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
W
WeLiveSecurity
H
Heimdal Security Blog
Vercel News
Vercel News
SecWiki News
SecWiki News
Forbes - Security
Forbes - Security
Blog — PlanetScale
Blog — PlanetScale
Google DeepMind News
Google DeepMind News
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
www.infosecurity-magazine.com
www.infosecurity-magazine.com
TaoSecurity Blog
TaoSecurity Blog
T
Troy Hunt's Blog
A
About on SuperTechFans
C
Check Point Blog
S
Security Affairs
Hacker News - Newest:
Hacker News - Newest: "LLM"
AI
AI
WordPress大学
WordPress大学
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Help Net Security
Help Net Security
博客园_首页
The Last Watchdog
The Last Watchdog
S
SegmentFault 最新的问题
Hugging Face - Blog
Hugging Face - Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
Engineering at Meta
Engineering at Meta
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
I
Intezer
K
Kaspersky official blog
M
MIT News - Artificial intelligence
J
Java Code Geeks
G
GRAHAM CLULEY
P
Palo Alto Networks Blog

博客园 - 早上六点半遇见五月天

PHP 关于用判断is_resource函数判断 CURL 句柄,在 PHP 7.2+ 版本有一个重要变化! mysql 存储不过1000个中文选什么数据类型 PHP curl 模拟GET请求接口报错HTTP Status 400 – Bad Request 问题 删除所有的php-fpm进程命令 利用Navicat premium实现将数据从Oracle导入到MySQL Mac版phpstorm 一次性折叠所有函数/方法的快捷键 PHP 常用的字符串函数 MySQL 表示日期的数据类型 同一局域网下Mac无法远程连接至win7报错:Unable to connect to remote PC. MySQL 支持的存储引擎 设计模式之单例模式 MySQL 数据定义语言(DDL) 设计模式的原则和法则 GoF的23种设计模式分类和功能 PHP 跨域之header Mac brew安装的php修改了php.ini之后如何重启php? PHP 文件上传之如何识别文件伪装?——PHP的fileinfo扩展可! PHP 超全局变量之$_FILES PHP 超全局变量之$GLOBALS
Mac 多次killall php-fpm之后会php-fpm会自动启动 解决方法
早上六点半遇见五月天 · 2020-04-29 · via 博客园 - 早上六点半遇见五月天

问题:Mac,php7.2,nginx

重启php-fpm,多次运行killall php-fpm,或者一个一个的kill -9之后,再查看进程ps aux | grep php-fpm,php-fpm进程还在……

参考网址:http://blog.haohtml.com/archives/18977

解决方法:

找到了上面的网址,原来是php-fpm配置文件和 ~/Library/LaunchAgents/homebrew.mxcl.php@7.2.plist 有关。

因为我是用homebrew安装的php7.2,所以自动加入了开机自启;

~/Library/LaunchAgents 针对当前用户的启动项目录,可以通过launchctl 命令来操作,常用的命令:

1.检查plist语法是否正确

$ plutil ~/Library/LaunchAgents/test.plist

2.加载plist文件,是配置生效

$ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.php@7.2.plist 

3.卸载配置

$ launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.php@7.2.plist 

4.查看所有启动任务

默认是当用户登录之后,系统会自动加载 ~/Library/LaunchAgents 的启动项,也就是对文件夹里的所有plist配置文件自动执行launchctl load;如果我们想停止某一个服务的话,需要执行launchctl unload <plist文件>;

$ launchctl list | grep php
55728    0    homebrew.mxcl.php@7.2
$ launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.php@7.2.plist 
$ launchctl list | grep php 

unload之后再用ps aux | grep php-fpm;发现php-fpm已停止;

修改完之后,在load;

然后就好了。