Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1682776
  • 博文数量: 391
  • 博客积分: 8464
  • 博客等级: 中将
  • 技术积分: 4589
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-13 15:12
个人简介

狮子的雄心,骆驼的耐力,孩子的执著!

文章分类

全部博文(391)

文章存档

2023年(4)

2018年(9)

2017年(13)

2016年(18)

2014年(7)

2013年(29)

2012年(61)

2011年(49)

2010年(84)

2009年(95)

2008年(22)

分类: 系统运维

2008-12-29 14:59:44

首先服务必须已在/etc/init.d目录中存在。如:
方式一:
 
查看服务列表代码  
service --status-all 

 [ + ]  apache2
 [ + ]  apparmor
 [ ? ]  apport
 [ ? ]  atd
 [ ? ]  avahi-daemon
 [ ? ]  binfmt-support
 [ - ]  bluetooth
 [ - ]  bootlogd

"+"、" -"、" ?" 的含义是什么? 
"+" started
"-" stopped
"?" unknown
启动开机时的服务代码  
sudo update-rc.d -f myservice default  
 
停止开机时的服务代码  
sudo update-rc.d -f myservice remove  

-f 递归所有运行级别
 
方式二: 
 
安装代码  
sudo install sysv-rc-conf  
 
执行代码  
sudo sysv-rc-conf 

其它方法: http://blog.ubuntu-tweak.com/2007/09/30/how-to-control-ubuntus-services-easily.html
Ubuntu 服务器版 Iptables

iptables入门教程--设置静态防火墙(step by step)

阅读(834) | 评论(0) | 转发(0) |
0

上一篇:ubuntu deb安装

下一篇:shell cron 环境变量

给主人留下些什么吧!~~