全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

IP归属甄别会员请立即修改密码
查看: 2159|回复: 15
打印 上一主题 下一主题

帮看下哪几个进程要关闭,感觉进程很多

[复制链接]
跳转到指定楼层
1#
发表于 2009-10-14 11:58:31 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
root         1     0  0 10:55 ?        00:00:00 init [3]
root      7941 13363  0 11:20 ?        00:00:00 sshd: root@pts/0
root      8099  7941  0 11:21 pts/0    00:00:00 -bash
root     11965     1  0 10:55 ?        00:00:00 /sbin/udevd -d
root     13348     1  0 10:55 ?        00:00:00 syslogd -m 0
root     13363     1  0 10:55 ?        00:00:00 /usr/sbin/sshd
root     13382     1  0 10:55 ?        00:00:00 xinetd -stayalive -pidfile /var/
root     13396     1  0 10:55 ?        00:00:00 /usr/sbin/vsftpd /etc/vsftpd/vsf
root     13410     1  0 10:55 ?        00:00:00 /bin/sh /usr/local/mysql/bin/mys
mysql    13555 13410  0 10:55 ?        00:00:00 /usr/local/mysql/libexec/mysqld
root     15721     1  0 10:55 ?        00:00:00 sendmail: accepting connections
smmsp    15731     1  0 10:55 ?        00:00:00 sendmail: Queue runner@01:00:00
root     15742     1  0 10:55 ?        00:00:00 crond
xfs      15773     1  0 10:55 ?        00:00:00 xfs -droppriv -daemon
root     15786     1  0 10:55 ?        00:00:00 /usr/sbin/saslauthd -m /var/run/
root     15788 15786  0 10:55 ?        00:00:00 /usr/sbin/saslauthd -m /var/run/
root     15798     1  0 10:55 ?        00:00:00 /usr/local/php/bin/php-cgi --fpm
www      15799 15798  0 10:55 ?        00:00:00 /usr/local/php/bin/php-cgi --fpm
www      15802 15798  0 10:55 ?        00:00:00 /usr/local/php/bin/php-cgi --fpm
www      15803 15798  0 10:55 ?        00:00:00 /usr/local/php/bin/php-cgi --fpm
www      15804 15798  0 10:55 ?        00:00:00 /usr/local/php/bin/php-cgi --fpm
www      15805 15798  0 10:55 ?        00:00:00 /usr/local/php/bin/php-cgi --fpm
root     15808     1  0 10:55 ?        00:00:00 nginx: master process /usr/local
www      15809 15808  0 10:55 ?        00:00:00 nginx: worker process
www      15810 15808  0 10:55 ?        00:00:00 nginx: worker process
www      15811 15808  0 10:55 ?        00:00:00 nginx: worker process
www      15812 15808  0 10:55 ?        00:00:00 nginx: worker process
www      15813 15808  0 10:55 ?        00:00:00 nginx: worker process
www      15814 15808  0 10:55 ?        00:00:00 nginx: worker process
www      15816 15808  0 10:55 ?        00:00:00 nginx: worker process
www      15818 15808  0 10:55 ?        00:00:00 nginx: worker process
root     15820     1  0 10:55 ?        00:00:00 /usr/local/php/bin/php-cgi --fpm
www      15821 15820  0 10:55 ?        00:00:01 /usr/local/php/bin/php-cgi --fpm
www      15822 15820  0 10:55 ?        00:00:01 /usr/local/php/bin/php-cgi --fpm
www      15823 15820  0 10:55 ?        00:00:01 /usr/local/php/bin/php-cgi --fpm
www      15824 15820  0 10:55 ?        00:00:01 /usr/local/php/bin/php-cgi --fpm
www      15825 15820  0 10:55 ?        00:00:01 /usr/local/php/bin/php-cgi --fpm
root     22050  8099  0 11:56 pts/0    00:00:00 ps -ef
2#
发表于 2009-10-14 11:59:41 | 只看该作者
nginx: worker 你开了几个?
3#
 楼主| 发表于 2009-10-14 12:02:48 | 只看该作者

回复 2# 的帖子

nginx.conf配置worker_connections=128
4#
发表于 2009-10-14 12:07:30 | 只看该作者
worker_processes 1
5#
发表于 2009-10-14 12:07:50 | 只看该作者
use epoll;
                worker_connections 51200;
6#
 楼主| 发表于 2009-10-14 12:20:26 | 只看该作者

回复 5# 的帖子

worker_processes 进程数我忘记没改,本来就那样
其实我想kill的是xfs 和smmsp
7#
发表于 2009-10-14 12:21:25 | 只看该作者
可以搜索下 centos优化
8#
发表于 2009-10-14 12:44:09 | 只看该作者
www      15809 15808  0 10:55 ?        00:00:00 nginx: worker process
www      15810 15808  0 10:55 ?        00:00:00 nginx: worker process
www      15811 15808  0 10:55 ?        00:00:00 nginx: worker process
www      15812 15808  0 10:55 ?        00:00:00 nginx: worker process
www      15813 15808  0 10:55 ?        00:00:00 nginx: worker process
www      15814 15808  0 10:55 ?        00:00:00 nginx: worker process
www      15816 15808  0 10:55 ?        00:00:00 nginx: worker process
www      15818 15808  0 10:55 ?        00:00:00 nginx: worker process

开这么多做甚呢,

nginx.conf 里面 worker_processes 2 就足够了。
9#
发表于 2009-10-14 13:02:00 | 只看该作者
他应该是默认的
10#
 楼主| 发表于 2009-10-14 13:13:26 | 只看该作者

回复 5# 的帖子

哥们你空间有探针啊?我看看如何
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-10-25 20:55 , Processed in 0.115009 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表