位置: 编程技术 - 正文
推荐整理分享Linux中chkconfig命令打开或关闭系统服务的使用教程(linux chkdsk),希望有所帮助,仅作参考,欢迎阅读内容。
文章相关热门搜索词:linux configure命令,linux chkconfig命令详解,linux中check命令,linux chcon命令,linux config,linux chkdsk,linux config,linux checkconfig,内容如对您有帮助,希望把文章链接给更多的朋友!
chkconfig提供了一个维护/etc/rc[0~6] d 文件夹的命令行工具,它减轻了系统直接管理这些文件夹中的符号连接的负担。chkconfig主要包括5个原始功能:为系统管理增加新的服务、为系统管理移除服务、列出单签服务的启动信息、改变服务的启动信息和检查特殊服务的启动状态。当单独运行chkconfig命令而不加任何参数时,他将显示服务的使用信息。
必要参数 --add 开启指定的服务程序 --del 关闭指定的服务程序 --list 列出chkconfig所知道的所有服务
选择参数 --level<代号> 设置服务程序的等级代号,它是一串0~7的数字,如“-level”代表指定运行等级3和5 --help 显示帮助信息 --version 显示版本信息 用法1复制代码代码如下:[root@localhost www]# chkconfig --list #查看系统程序列表[root@localhost www]# chkconfig httpd on #将httpd加入开机启动[root@localhost www]# chkconfig httpd off #关闭httpd开机启动
用法2复制代码代码如下:[root@localhost tank]# chkconfig --add nginx #添加nginx启动脚本为chkconfig管理的一个服务[root@localhost tank]# chkconfig --del nginx #删除chkconfig管理的的nginx启动服务
实例:安装cent os 位 后,默认带了很不多不必要的服务,用以下命令列出:复制代码代码如下:chkconfig --list | grep :oncups 打印服务 yum-updatesd 常在繁忙的时候占用大量CPU和内存 pcscd 智能卡,比如SD读卡器 hidd 和 bluetooth 蓝牙 cpuspeed 智能调节CPU,笔记本用 firstboot 第一次安装完成后的引导设置 gpm 鼠标复制粘贴复制代码代码如下:chkconfig cups offchkconfig yum-updatesd offchkconfig pcscd offchkconfig hidd offchkconfig bluetooth offchkconfig cpuspeed offchkconfig firstboot offchkconfig gpm off以下的内容来源于网络,未考证功用复制代码代码如下:chkconfig rhnsd offchkconfig anacron offchkconfig arptables_jf offchkconfig autofs offchkconfig openibd offchkconfig messagebus offchkconfig rawdevices offchkconfig canna offchkconfig atd offchkconfig iiim offchkconfig pcmcia offchkconfig haldaemon offchkconfig iptables offchkconfig mdmonitor offchkconfig hpoj off#chkconfig nfslock offchkconfig acpid offchkconfig sendmail offchkconfig cups offchkconfig isdn offchkconfig irqbalance offchkconfig microcode_ctl offchkconfig cups-config-daemon offchkconfig ip6tables off其他: 关闭nfs相关服务 关闭rpc相关服务关闭复制代码代码如下: SELinux vi /etc/selinux/config
Linux中tar命令操作文件的基本使用教程 语法tar[-]A--catenate--concatenate|c--create|d--diff--compare|--delete|r--append|t--list|--test-label|u--update|x--extract--get[options][pathname...]描述原始正宗官方的说法是:Tar储存
Linux中文件与目录对应的硬链接与软链接方式总结 硬链接新建的文件是已经存在的文件的一个别名,当原文件删除时,新建的文件仍然可以使用。硬链接特征:1、拥有相同的i节点和相同的存储block快,
实例讲解Linux系统中硬链接与软链接的创建 首先要弄清楚,在Linux系统中,内核为每一个新创建的文件分配一个Inode(索引结点),每个文件都有一个惟一的inode号。文件属性保存在索引结点里,在访问文
标签: linux chkdsk
本文链接地址:https://www.jiuchutong.com/biancheng/360500.html 转载请保留说明!上一篇:在Dropbox上搭建私有的Git仓库的教程(dropbox怎么在国内使用)
下一篇:Linux中tar命令操作文件的基本使用教程(linux的tar命令用法)
友情链接: 武汉网站建设