Chinaunix首页 | 论坛 | 博客
  • 博客访问: 421685
  • 博文数量: 121
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 540
  • 用 户 组: 普通用户
  • 注册时间: 2012-01-16 16:28
文章分类

全部博文(121)

文章存档

2021年(3)

2018年(1)

2017年(5)

2016年(9)

2015年(23)

2014年(80)

我的朋友

分类: LINUX

2014-02-18 16:38:55


CentOS/Ubuntu 默认会开启 avahi-daemon,这玩意在服务器上显然是没用的,会占用大概 250KB 的内存,最重要的是会开 5353 和 32768 两个端口。

在 Ubuntu 下禁用:
# vim /etc/default/avahi-daemon
AVAHI_DAEMON_DETECT_LOCAL=0
# sed -i s@start on (filesystem and started dbus)@start on (never and filesystem and started dbus)@ /etc/init/avahi-daemon.conf
# vim /etc/avahi/avahi-daemon.conf
use-ipv4=no

CentOS 下:
# chkconfig avahi-dnsconfd off
# chkconfig avahi-daemon off

以上都不如直接卸了爽:
# /etc/init.d/avahi-daemon stop
# update-rc.d -f avahi-daemon remove
# apt-get remove avahi-daemon 
 

阅读(8138) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~