Aphorism

December 11, 2018

蛮久没更新了,从书上抄来一句话,装修门脸。For people and things in the world,only withstand the test of time,withstand the ups and downs of life,can be a real interesting soul.这个世界上的人和事,只有经得起时间的考验,耐得住生命的跌宕,才是一个真正有趣的灵魂。 Read more

Depression

October 31, 2018

I do realize people are awfully bigoted about mental illness, I've heard people tell someone with bipolar disorder that they "just lack discipline." But get help, even if your mood is just temporary. Your life will be better for it. And remember, getting a diagnosis over the[...] Read more

术语

October 22, 2018

荣耀来自别人,自尊来自自己。氛围:特别设计的环境。活动:安排好的事件。团体:彼此需要他人配合的一群人。领导者工作的三个方向:确定方向、统一思想、激励和鼓舞。隐性知识:难以表达、隐含于过程和行动的非结构化知识。沟通:为了一个设定的目标,把信息、思想和情感,在个人和群体间传递,并且达成协议的过程。扁平化组织结构:尽最大可能将决策权向组织结构的下层移动,让下层单位拥有充分的自决权,并对产生的结果负责。双环学习:忘记或抛弃原来所相信的或使用的假设、目标和流程,创造出更适于组织长远发展的目标、战略和方法。 Read more

php-fpm进程占用内存过大

September 23, 2018

最近发现机器内存占用过大,虽然没有出现明显卡顿现象,但是总感觉怪怪的。查看占用内存最大的7个进程ps auxw|head -1;ps auxw|sort -rn -k4|head -7发现php-fpm进程占了大部分于是修改php-fpm配置文件vim /etc/php-fpm.d/www.confpm.max_children = 120 (最大进程数) pm.start_servers = 5 (起始php-fpm进程数量) pm.max_spare_servers = 80 (最大php-fpm闲置进程数量) php_admin_valu[...] Read more

nohup、&和 2>&1

September 14, 2018

&:把作业放到后台运行。nohup:不挂起(no hang up)nohup和&的区别command & 命令后台运行,但是关闭终端后,进程结束。nohup command & 命令后台运行,关闭终端后,进程继续运行。杀死进程的命令:pkill -9 namekillall namekill pid文件描述符0:标准输入,键盘输入(stdin)文件描述符1:标准输出,输出到屏幕(stdout)文件描述符2:标准错误,默认输出到终端窗口(stderr)&1:通道1(没有&符号是一个文件)&2:通道2(没有&符号是一个文件)2>&1:标准错误[...] Read more

© 2025 | ♥