惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 叶小钗
云风的 BLOG
云风的 BLOG
G
Google Developers Blog
S
SegmentFault 最新的问题
罗磊的独立博客
Hugging Face - Blog
Hugging Face - Blog
美团技术团队
爱范儿
爱范儿
博客园 - 三生石上(FineUI控件)
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
DataBreaches.Net
F
Fortinet All Blogs
TaoSecurity Blog
TaoSecurity Blog
D
Docker
C
Cybersecurity and Infrastructure Security Agency CISA
K
Kaspersky official blog
宝玉的分享
宝玉的分享
腾讯CDC
Google Online Security Blog
Google Online Security Blog
Recorded Future
Recorded Future
T
The Exploit Database - CXSecurity.com
T
The Blog of Author Tim Ferriss
V
V2EX
S
Securelist
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
C
CERT Recently Published Vulnerability Notes
A
Arctic Wolf
Scott Helme
Scott Helme
L
LINUX DO - 热门话题
Y
Y Combinator Blog
P
Proofpoint News Feed
T
Tor Project blog
AWS News Blog
AWS News Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
The Last Watchdog
The Last Watchdog
博客园 - 聂微东
T
Threat Research - Cisco Blogs
B
Blog
Attack and Defense Labs
Attack and Defense Labs
L
Lohrmann on Cybersecurity
C
CXSECURITY Database RSS Feed - CXSecurity.com
阮一峰的网络日志
阮一峰的网络日志
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
IT之家
IT之家
N
News and Events Feed by Topic
博客园 - 司徒正美
H
Help Net Security
C
Cisco Blogs
C
Check Point Blog
S
Secure Thoughts

博客园 - simhare

Fix “Windows cannot access the specified device path or file” Error Domain Space mysql 登录后 修改密码 git delete repository php - func_get_args mysql key mul - 看不懂 mysql show create table `tablename` 查看建表语句 zend framework assumptions linux vsftpd pkill kill 看看自己是谁 linux 本地编码-如何解决乱码 linux添加用户-例如oracle 博文阅读密码验证 - 博客园 yum 只下载不安装 mysql netstat linux pts tty linux pts Linux 启动 进入单用户模式 其他用户无法连接 apache start stop
linux chkconfig
simhare · 2013-05-04 · via 博客园 - simhare

--list 后面可以加 服务名称 就只输出此服务的信息

例如

#chkconfig httpd on

就可以把httpd服务 设置为自动启动了

再次查看

#chkconfig --list httpd

httpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off

这个时候2~5都是on,设置成功。

相反的

#chkconfig httpd off 就是 关闭自动启动

最后 还有个 --level 应该是对 0-6 某些 等级进行单独设置

#chkconfig --level 35 httpd on 将3和5 设置成on

===========================================
[root@DBSVR02 ~]# chkconfig --list
abrt-ccpp       0:off   1:off   2:off   3:on    4:off   5:on    6:off
abrt-oops       0:off   1:off   2:off   3:on    4:off   5:on    6:off
abrtd           0:off   1:off   2:off   3:on    4:off   5:on    6:off
acpid           0:off   1:off   2:on    3:on    4:on    5:on    6:off
atd             0:off   1:off   2:off   3:on    4:on    5:on    6:off
auditd          0:off   1:off   2:on    3:on    4:on    5:on    6:off
autofs          0:off   1:off   2:off   3:on    4:on    5:on    6:off
certmonger      0:off   1:off   2:off   3:on    4:on    5:on    6:off
cgconfig        0:off   1:off   2:off   3:off   4:off   5:off   6:off
cgred           0:off   1:off   2:off   3:off   4:off   5:off   6:off

==========================================
[root@DBSVR02 ~]# service --list
--list: unrecognized service
[root@DBSVR02 ~]#
==========================================
[root@DBSVR02 ~]# service
Usage: service < option > | --status-all | [ service_name [ command | --full-restart ] ]
[root@DBSVR02 ~]# service vsftpd status
vsftpd: unrecognized service
[root@DBSVR02 ~]# service --status-all | grep vsftpd
[root@DBSVR02 ~]#
=========================================


[root@DBSVR02 etc]# yum search vsftpd
Loaded plugins: downloadonly, fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: mirrors.grandcloud.cn
 * extras: mirrors.grandcloud.cn
 * updates: mirrors.grandcloud.cn
base                                                                         | 3.7 kB     00:00
extras                                                                       | 3.5 kB     00:00
updates                                                                      | 3.5 kB     00:00
======================================= N/S Matched: vsftpd ========================================
vsftpd.i686 : Very Secure Ftp Daemon

  Name and summary matches only, use "search all" for everything.
[root@DBSVR02 etc]# yum install vsftpd.i686
Loaded plugins: downloadonly, fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: mirrors.grandcloud.cn
 * extras: mirrors.grandcloud.cn
 * updates: mirrors.grandcloud.cn
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package vsftpd.i686 0:2.2.2-11.el6_4.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package              Arch               Version                        Repository             Size
====================================================================================================
Installing:
 vsftpd               i686               2.2.2-11.el6_4.1               updates               157 k

Transaction Summary
====================================================================================================
Install       1 Package(s)

Total download size: 157 k
Installed size: 344 k
Is this ok [y/N]: y
Downloading Packages:
vsftpd-2.2.2-11.el6_4.1.i686.rpm                                             | 157 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : vsftpd-2.2.2-11.el6_4.1.i686                                                     1/1
  Verifying  : vsftpd-2.2.2-11.el6_4.1.i686                                                     1/1

Installed:
  vsftpd.i686 0:2.2.2-11.el6_4.1

Complete!
[root@DBSVR02 etc]# service vsftpd status
vsftpd is stopped
[root@DBSVR02 etc]#