码迷,mamicode.com
首页 > 其他好文 > 详细

CentOS7学习笔记

时间:2017-06-17 11:08:59      阅读:192      评论:0      收藏:0      [点我收藏+]

标签:round   body   tar   its   long   idt   type   32位   status   

关机与重启命令

shutdown -h now
shutdown -r 10
shutdown -r 23:59

显示目录文件

ls -a /etc/

查看名称包含telnet的软件是否已安装  (| grep  表示匹配的意思)

ypm-qa | grep telnet

切换praybb用户

us praybb

查看系统分区

df -h    # df -k    df –l

查看源列表

yum list |grep telnet #查看源列表中匹配telnet的软件

安装源软件

yum install telnet.x86_64 #安装telnet.x86_64软件

服务的操作

关键字:   

start enable disable status restart systemctl list -units --type=service
启动 开机启动 删除开机启动 查看状态 重新启动 查看已启动的服务
systemctl #显示正在运行的服务
systemctl  enable nfs-server.service 
#设置开机启动NFS服务,

查看centos版本号

cat /etc/redhat-release

查看centos系统是64位还是32位

getconf LONG_BIT

 

CentOS7学习笔记

标签:round   body   tar   its   long   idt   type   32位   status   

原文地址:http://www.cnblogs.com/praybb/p/5978142.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!