2018年11月7日

Linux CentOS 6.7 挂载U盘

摘要: 1. 首先查看U盘是否成功安装fdisk -l 2. 在/mnt下创建U盘目录mkdir /mnt/usb 3. 挂载U盘mount -t vfat /dev/sdb1 /mnt/usb 4. 卸载U盘umount/usb 或 umount /dev/sdb1 阅读全文

posted @ 2018-11-07 18:19 ert999 阅读(1405) 评论(0) 推荐(0) 编辑

家庭-养老院模型理解IOC和DI

摘要: 控制反转 IOC 1. 概念 应用内部不负责依赖对象的创建和维护, 由第三方负责, 这样控制权就由应用内部转移到外部容器, 控制权的转移就是所谓的反转. 2. 比喻 有一户家庭(应用)有个老人(依赖对象), 家庭需要负责老人的吃喝住行(依赖对象的创建和维护), 但因家里的年轻人需要上班赚钱, 没有时 阅读全文

posted @ 2018-11-07 16:24 ert999 阅读(257) 评论(0) 推荐(0) 编辑

Bash基础

摘要: 一. Bash基础 # history 1. 查看缓冲区历史命令history 2. 清空缓冲区历史命令history -c 3. 将缓冲区历史命令写入历史命令记录文件history -w # 默认历史命令记录文件为.bash_historyhistory -w history.log 4. 配置历 阅读全文

posted @ 2018-11-07 12:36 ert999 阅读(165) 评论(0) 推荐(0) 编辑

导航