摘要: [root@localhost ~]# chkconfig --list # 列出开启或关闭了哪些系统服务 [root@localhost ~]# chkconfig xxx off # 关闭某个系统服务 [root@localhost ~]# chkconfig xxx on # 开启某个系统服务 [root@lo... 阅读全文
posted @ 2017-12-11 17:25 minger_lcm 阅读(183) 评论(0) 推荐(0)
摘要: ssh 命令用于登录主机,用法如下: -i 指定秘钥进行远程登录 阅读全文
posted @ 2017-12-11 16:46 minger_lcm 阅读(163) 评论(0) 推荐(0)
摘要: 1. netstat命令用于显示系统的网络信息,包括网络连接 、路由表 、接口状态2. 一般我们使用 netstat 来查看本机开启了哪些端口,查看有哪些客户端连接 常用: 命令参数: 阅读全文
posted @ 2017-12-11 16:18 minger_lcm 阅读(1917) 评论(0) 推荐(0)
摘要: ntpdate用来同步时间 阅读全文
posted @ 2017-12-11 16:10 minger_lcm 阅读(457) 评论(0) 推荐(0)
摘要: [root@localhost ~]# du -sh /etc # 查看目录下所有文件大小 [root@localhost ~]# du -sh * # 查看所有文件大小 阅读全文
posted @ 2017-12-11 16:07 minger_lcm 阅读(234) 评论(0) 推荐(0)
摘要: 按空格往下查看, 按小写 b 往上查看 按h显示帮助 q退出 按回车 一行一行往下看 按= 显示当前行号 按/ 搜索功能字符串 /mysql 查到有mysql那行 按v 进入vi/vim模式 ! 调用命令 !df -h [root@localhost ~]# more 1.txt # 按页显示文件内 阅读全文
posted @ 2017-12-11 15:59 minger_lcm 阅读(302) 评论(0) 推荐(0)
摘要: [root@localhost ~]# ls # 列出当前目录下所有的文件 [root@localhost ~]# ls /tmp # 列出指定目录下所有的文件 [root@localhost ~]# ls -a # -a 查看所有的文件,包括隐藏文件,以.开头的文件 [root@localhost 阅读全文
posted @ 2017-12-11 15:24 minger_lcm 阅读(231) 评论(0) 推荐(0)
摘要: [root@localhost ~]# cd # 进入当前用户的家目录 [root@localhost ~]# cd ~ # 进入当前用户的家目录 [root@localhost ~]# cd /data # 进入指定目录 [root@localhost ~]# cd - # 进入上一次所在的目录 [root@localhost ~]# cd . ... 阅读全文
posted @ 2017-12-11 11:52 minger_lcm 阅读(160) 评论(0) 推荐(0)