Ubuntu 中管理服务 - XiZi's Blog

Ubuntu 中管理服务

Xizi posted @ 2009年4月29日 08:14 in Ubuntu with tags ubuntu 管理 服务 , 2148 阅读

添加一个服务

sudo update-rc.d 服务名 defaults 99
 

 

删除一个服务

sudo update-rc.d 服务名 remove

 

临时重启一个服务

/etc/init.d/服务名 restart

 

临时关闭一个服务

/etc/init.d/服务名 stop

 

临时启动一个服务

/etc/init.d/服务名 start

Ubuntu也提供了另外一个简单的命令来实现管理。但首先服务必须已在/etc/init.d目录中存在。如:

添加一个服务: sudo update-rc.d ServiceName defaults

删除一个服务: sudo update-rc.d ServiceName remove

还可以安装另外一个比较强的工具: sudo apt-get install sysv-rc-conf sysvconfig

启动: sudo sysv-rc-conf 它可心配置各服务在各级别上的启动情况.

随时想启动某个服务, 可以这样: sudo /etc/init.d/ServiceName start

比如我要远程登录, 要用ssh服务: sudo /etcinit.d/ssh start (别的系统可能是sshd)

使用工具 sysv-rc-conf
  sudo apt-get install sysv-rc-conf
  sudo sysv-rc-conf
  用空格键开启或关闭,标记X的为开启,设置完按q退出

  下面简单介绍一下这几种运行等级:

  runlevel 1:为单用户模式保留,对应/etc/rc1.d目录中的脚本。该运行等级通常在恢复系统时使用。
  runlevel 2~5:应用于多用户模式,对应 /etc/rc2.d …… /etc/rc5.d目录中的脚本,通常可以自由定制。
  runlevel 0:关机进程,对应 /etc/rc0.d
  runlevel 6:重启进程,对应 /etc/rc6.d
  runlevel S:开机进程中最先的运行等级,对应 /etc/rcS.d中的脚本
 

Avatar_small
Where can you buy Ne 说:
2021年6月15日 05:57

Writing with style and getting good compliments on the article is quite hard, to be honest.But you've done it so calmly and with so cool feeling and you've nailed the job. This article is possessed with style and I am giving good compliment. Best!

Avatar_small
home-repair-hand-too 说:
2021年8月08日 18:13

I have been searching to find a comfort or effective procedure to complete this process and I think this is the most suitable way to do it effectively.

Avatar_small
Mori 说:
2021年10月18日 03:46

Wow! Such an amazing and helpful post this is. I really really love it. It's so good and so awesome. I am just amazed. I hope that you continue to do your work like this in the future also.

Avatar_small
faddy 说:
2022年6月21日 01:15

Hey There. I found your blog using msn. This is a very well written article. I’ll be sure to bookmark it and come back to read more of your useful info. Thanks for the post. I’ll definitely return. Whisky Shop Near me

Avatar_small
dark web/deep web/d 说:
2022年8月21日 00:59

Keep in mind that even though you may be looking for information on how to make money on the dark web, this isn't usually a legitimate place to start. It's usually a place to do illegal activities. dark web links

Avatar_small
dark web/deep web/d 说:
2022年8月21日 01:54

This isn't an overnight process, so be patient and keep track of your progress as you search for the perfect opportunity. deep web

Avatar_small
dark web/deep web/d 说:
2022年8月21日 02:19

Linking is just another way of saying that if you write or have some information on a particular website and if you have a link to that website, then you can help bring people to the website. dark web sites

Avatar_small
dark web/deep web/d 说:
2022年8月21日 02:38

They spent hours researching and writing articles and submitting them to directories so that they can get the maximum exposure and for people to use. dark web links

Avatar_small
dark web/deep web/d 说:
2022年8月21日 02:56

Once you have found the right people, you can start by creating some links for your own website. In this process, you will need to spend time looking for relevant links and then putting them on your website. dark web

Avatar_small
dark web/deep web/d 说:
2022年8月21日 03:15

First, visit the company's main website and look for their "Affiliate" link. On the "Affiliate" link there will be a button for joining the program. When you click this button, the program will begin to display products and services related to the product or service you selected. work from home jobs

Avatar_small
dark web/deep web/d 说:
2022年8月21日 03:35

Also, make sure that your site is easy to navigate and that it is visually appealing to the visitor. No one wants to visit your site and spend time trying to figure out how to use the link on your site! affiliate marketing success

Avatar_small
HASNA 说:
2022年9月03日 02:44

Many thanks for this specific info I had been exploring all Bing to discover it! https://www.simplybuzzes.com/angel-number-5885-meaning/

Avatar_small
charlly 说:
2023年1月13日 15:13

Ubuntu's System Settings tool provides a graphical interface for managing many of the system's services. To launch System Settings, either click the System Settings icon in the Dock, or click the gear icon in the top-right corner of the screen and select System Settings from the drop-down menu. In System Settings, you'll find a row of icons for each of the different types of settings you can modify. To manage services, click on the icon CBD for sleep labeled "Startup Applications." This will open the Startup Applications Preferences window.

Avatar_small
How to block emails 说:
2023年2月01日 21:08

Many people depend on the Gmail platform for day-to-day communication. Promotional events or emails from unknown persons are not enough to identify as spam in this medium. Though Gmail filters flag emails as SPAM, How to block emails on Gmail you must additionally block email Gmail to ensure that no further emails are received. When you know the fundamental information that will be needed to block someone on Gmail, it is pretty simple.

Avatar_small
mindfulanxietyrings. 说:
2023年7月22日 05:02

The following seriously sometimes a really good offer we the fact is seriously experienced looking into. It is far from essentially common we add substitute for find out a specialized element.

Avatar_small
tax-accounting-bookk 说:
2023年7月24日 13:49

Being in business is difficult enough. So that you may concentrate on what you do best, finxpertsolutions guarantees that your books and taxes are 100% accurate. For one low price, get all you require to ensure compliance, extend your runway, and have a clear financial picture. With our professional tax-accounting-bookkeeping services, you may even get your prior-year books back on track.

Avatar_small
GD Kitchen 说:
2023年11月07日 01:51

The 'Gestational Diabetes Diet' takes a prominent role. Tailored specifically to address 'my keyword,' this meticulously crafted eating plan is designed to control and manage blood sugar levels during pregnancy. By adhering to the principles of the 'Gestational Diabetes Diet,' expectant mothers can effectively navigate the challenges associated with 'my keyword,' ensuring the health and well-being of both themselves and their baby.

Avatar_small
RTP Ligaciputra 说:
2023年11月12日 11:25

RTP Ligaciputra offers an engaging and immersive gaming experience. The platform's user-friendly interface and diverse game selection make it a go-to choice for both casual and avid gamers alike. Exciting and reliable – a winning combination!

Avatar_small
Best XL Pitbull Kenn 说:
2023年12月23日 18:41

Explore excellence in canine companionship at the 'Best American Bully Kennels.' Our commitment to superior breeding standards results in American Bullys of outstanding health, temperament, and conformation. Choose a lifelong companion from our distinguished kennels, where quality and care converge.

Avatar_small
Lloyd C. Rice 说:
2024年1月02日 02:41

Embark on a sensorial voyage with "Navigating the Realm of Sensual Massage," where skilled hands guide you through a labyrinth of relaxation and delight. Each stroke becomes a compass, navigating the currents of pleasure and tranquility, creating a harmonious symphony for your senses. Elevate your well-being as you navigate this exquisite journey, charting a course to the ultimate destination of blissful serenity.

Avatar_small
減脂 说:
2024年1月03日 01:29

Hey there, health enthusiasts! Are you tired of struggling with excess weight and searching for effective ways to shed those unwanted pounds? Well, you’re in the right place! In this comprehensive guide, we will walk you through the ins and outs of fat loss, providing you with essential tips and tricks to help you achieve your weight loss goals. Let’s dive right in!

Avatar_small
First Super Car Rent 说:
2024年1月22日 05:53

Experience the pinnacle of luxury with our fleet of Luxury Cars for Rent in Dubai. Immerse yourself in opulence as you navigate the city in style and comfort. Elevate your journey with our exclusive selection, where every drive is a statement of refined elegance.

Avatar_small
Faraday protection 说:
2024年1月28日 23:27

In an era dominated by advanced technology and interconnected devices, the need for protecting sensitive information has become more critical than ever. Radio Frequency Interference (RFI) signals pose a significant threat to the security of mobile devices, potentially compromising the confidentiality of personal and professional data. Recognizing this vulnerability, Sirchie, a leading provider of security solutions, has developed cutting-edge Faraday protection products to shield mobile devices from RFI signals, ensuring enhanced privacy and security for users.

Avatar_small
Webdesign österreich 说:
2024年1月28日 23:43

Blackrabbyt ist eine in Wien ansässige kreative Digitalagentur mit der Leidenschaft, die Grenzen von Kreativität und technischer Innovation ständig zu erweitern

Avatar_small
taxiwaltononthames 说:
2024年1月31日 01:39

Experience affordable and reliable travel with our cheap airport Taxis. We provide cost-effective transportation without compromising on quality service. Book our cheap airport Taxis for a comfortable and budget-friendly journey to your destination, ensuring convenience without breaking the bank.

Avatar_small
Taxiwey Bridge 说:
2024年2月04日 00:15

Minicabs Weybridge: Your reliable solution for swift and comfortable transportation. Our dedicated minicabs offer efficient service tailored to your travel needs in Weybridge and nearby areas. Experience hassle-free journeys with Minicabs Weybridge, ensuring punctuality and customer satisfaction at every ride.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter
Host by is-Programmer.com | Power by Chito 1.3.3 beta | © 2007 LinuxGem | Design by Matthew "Agent Spork" McGee