偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

chkconfig用法對(duì)sshd各種服務(wù)應(yīng)用介紹

運(yùn)維 系統(tǒng)運(yùn)維
Linux 的服務(wù)都是以腳本的方式運(yùn)行的,F(xiàn)edora當(dāng)然不例外,這些服務(wù)的腳本都放在 /etc/rc.d/init.d 目錄下。我們可以通過修改此處的各項(xiàng)服務(wù)腳本控制其運(yùn)行細(xì)節(jié)。

在當(dāng)前大多數(shù)Linux發(fā)行版中可能都會(huì)包含這兩個(gè)命令,chkconfig用法為我們控制Linux中的服務(wù)(守護(hù)進(jìn)程)提供了很大的方便,先看看這兩條命令的幫助:

[root@localhost ~]# service --help
Usage: service < option > | --status-all | [ service_name [ command | --full-restart ] ]

[root@localhost ~]# chkconfig --help
chkconfig 版本 1.3.29 - 版權(quán) (C) 1997-2000 Red Hat, Inc.
在 GNU 公共許可的條件下,本軟件可以被自由發(fā)行。

chkconfig用法: chkconfig --list [name]
chkconfig --add
chkconfig --del
chkconfig [--level ] <on|off|reset|resetpriorities>

在我的系統(tǒng)上sshd默認(rèn)不在系統(tǒng)服務(wù)列表里邊,下面以sshd命令說明他們的用法:

輸入service sshd會(huì)列出可用的一些操作:

[root@localhost ~]# service sshd
用法:/etc/init.d/sshd {start|stop|restart|reload|condrestart|status}

啟動(dòng)sshd服務(wù):
service sshd start

停止sshd服務(wù):
service sshd stop

將sshd添加到服務(wù)列表里邊:
chkconfig --add sshd

使sshd可以開機(jī)自動(dòng)運(yùn)行:
chkconfig sshd on

還可以通過--level具體指定sshd的運(yùn)行級(jí)別。

【編輯推薦】

  1. 輕松掌握Linux chgrp與chown命令 
  2. Linux Cat命令深度用法實(shí)例說明
  3. Linux Cat命令實(shí)際應(yīng)用詳解
  4. Linux Cat命令三大主要功能詳解
  5. 詳解Linux chgrp和chown命令的用法
責(zé)任編輯:chenqingxiang 來源: 網(wǎng)易博客
相關(guān)推薦

2010-06-24 17:42:08

服務(wù)不支持chkcon

2010-06-24 17:04:24

Linux chkco

2010-06-24 17:11:01

Linux chkco

2010-03-01 13:13:02

Python應(yīng)用線程

2010-06-24 17:14:16

Linux chkco

2010-02-26 13:56:08

Python RSS

2010-06-22 17:45:34

Linux Autom

2009-12-25 11:04:51

WPF Border

2011-12-01 10:55:34

2021-08-04 07:26:07

IIS服務(wù)器反向代理

2010-06-24 17:29:03

chkconfig 工

2010-06-24 17:45:04

suse chkcon

2010-06-24 17:19:14

Linux chkco

2011-11-03 14:48:41

負(fù)載均衡服務(wù)器

2020-11-05 11:30:46

PythonNumPy數(shù)組

2014-12-15 11:23:00

Docker Comp分布式應(yīng)用容器應(yīng)用

2012-06-18 16:50:34

云計(jì)算服務(wù)

2019-04-16 15:18:28

SQLJOIN數(shù)據(jù)庫(kù)

2010-06-24 17:37:59

服務(wù)不支持chkcon

2010-06-24 17:23:47

chkconfig用法
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)