2019年11月12日

摘要: 1.selinux和firewalld关闭 //临时关闭selinux,立即生效 [root@wll ~] setenforce 0 [root@wll ~] getenforce Disabled //永久关闭selinux,重启生效 [root@wll ~] sed i 's SELINUX=d 阅读全文
posted @ 2019-11-12 10:19 旗木卡卡祥 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 文件下载命令 1.wget //文件下载 [root@localhost ~] ll total 4 rw . 1 root root 1317 Feb 17 19:25 anaconda ks.cfg [root@localhost ~] wget www.baidu.com 2019 02 17 阅读全文
posted @ 2019-11-12 10:15 旗木卡卡祥 阅读(638) 评论(0) 推荐(0) 编辑
摘要: 文件查看命令 cat cat基础用法 将文件内容打印到显示器 [root@oldboy ~] cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localho 阅读全文
posted @ 2019-11-12 10:02 旗木卡卡祥 阅读(185) 评论(0) 推荐(0) 编辑

2019年11月8日

摘要: rm / mv : 自己做一个回收站 思路 cd mkdir .recycle 隐藏文件夹 .recycle mv .txt .recycle/ 把想要删除的文件移动到.recycle当中 通过定时任务定期清除 .recycle 文件夹中的内容 或者rm rf ./recycle/ 回收站示例 !/ 阅读全文
posted @ 2019-11-08 19:24 旗木卡卡祥 阅读(736) 评论(0) 推荐(0) 编辑
摘要: 文件管理命令: 1. touch: 创建或更新文件时间 创建文件 [root@bogon ssx linux] touch file{1..6} [root@bogon ssx linux] ls a b c d e file1 file2 file3 file4 file5 file6 [root 阅读全文
posted @ 2019-11-08 18:53 旗木卡卡祥 阅读(318) 评论(0) 推荐(0) 编辑
摘要: [root@oldboy ~] root 当前登录用户 oldboy 当前主机名 [root@oldboy ~] hostnamectl set hostname oldgirl 永久有效 [root@oldboy ~] hostname oldgirl 临时生效 ~ 当前所在目录名 表示管理员, 阅读全文
posted @ 2019-11-08 15:10 旗木卡卡祥 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 目录路径: 1. 特殊目录: . 当前目录 .. 上一级目录 [root@oldboy /] cd /etc/sysconfig/ [root@oldboy sysconfig] pwd /etc/sysconfig [root@oldboy sysconfig] [root@oldboy sysc 阅读全文
posted @ 2019-11-08 15:07 旗木卡卡祥 阅读(263) 评论(0) 推荐(0) 编辑
摘要: Linux一切皆为文件 Linux目录结构: /bin 所有用户可用的基本命令程序文件; 类似于windows中的C:\Windows\system32 /sbin 供系统管理使用的工具程序; /boot 引导加载器必须用到的各静态文件,主要有kernel,initramfs(initrd),gru 阅读全文
posted @ 2019-11-08 14:37 旗木卡卡祥 阅读(1451) 评论(0) 推荐(0) 编辑
摘要: 1.CentOS 7.5 修改IP ifconfig CentOS 7修改ip的方法: 第一种: nmtui 方向键,Tab,空格,回车 第二种: 修改网卡配置文件 cat /etc/sysconfig/network scripts/ ls 找到需要配置的网卡 BOOTPROTO = none / 阅读全文
posted @ 2019-11-08 14:21 旗木卡卡祥 阅读(1434) 评论(0) 推荐(0) 编辑
摘要: 运维职责: 1.数据安全,不丢失 2.7 24 稳定运行,不宕机 3.用户体验好 为什么要学习Linux? 目前比较火的互联网技术(ABC),都是基于Linux的 A AI B Big Data(大数据分析) C Cloud Computing(云计算) 服务器端Linux系统 首选RedHat ( 阅读全文
posted @ 2019-11-08 13:52 旗木卡卡祥 阅读(255) 评论(0) 推荐(0) 编辑