摘要: 一、概念 1. 环回: 一般指的是本地环回地址127.0.0.1(Loopback Address)。不属于任何一个有类别地址类。它代表设备的本地虚拟接口,所以默认被看作是永远不会宕掉的接口。在Windows操作系统中也有相似的定义,所以通常在安装网卡前就可以ping通这个本地回环地址。一般都会用来 阅读全文
posted @ 2020-04-10 10:26 3月の狮子 阅读(604) 评论(0) 推荐(0) 编辑
摘要: 一、概念 1.定义:正则表达式是一种基础的模式匹配(pattern-matching)技术。 2.模式:将内部数据在结构上抽象为字符串; 模式指的就是数据结构。 3.匹配: List(“A”,”B”,”C”) match{ case List(“A”,_,”C”) ——> println(“ok”) 阅读全文
posted @ 2020-04-10 05:43 3月の狮子 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 一、 二、 三、 四、 阅读全文
posted @ 2020-04-08 17:47 3月の狮子 阅读(2129) 评论(0) 推荐(0) 编辑
摘要: 一、起因:This system is not registered with an entitlement server. You can use subscription-manager to register. [root@localhost yum.repos.d]# yum install 阅读全文
posted @ 2020-04-08 17:23 3月の狮子 阅读(962) 评论(0) 推荐(0) 编辑
摘要: 一、禁用 yum插件 fastestmirror 1.修改插件的配置文件 cp /etc/yum/pluginconf.d/fastestmirror.conf /etc/yum/pluginconf.d/fastestmirror.conf.bak vi /etc/yum/pluginconf.d 阅读全文
posted @ 2020-04-07 20:03 3月の狮子 阅读(517) 评论(0) 推荐(0) 编辑
摘要: 一、MySQL 安装路径 /usr/local/mysql/bin/mysql_secure_installation 参考手册 http://dev.mysql.com/doc/refman/5.0/en/macosx-installation.html 二、Nginx 安装失败 httpd占用8 阅读全文
posted @ 2020-04-07 00:37 3月の狮子 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 一、简介 1.find默认操作是打印出文件和目录,但是最好使用-print选项来指定 2.find若要传给xagrs命令,则应使用-print0选项来指定,此时分隔符由\n变为\0 3.find 路径 选项+参数 二、技巧 1.利用正则表达搜索 [root@localhost 1]# ll tota 阅读全文
posted @ 2020-04-06 23:39 3月の狮子 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 一、简介 1.应用: (1)调试终端会话 (2)提供Shell教程2.命令 (1)script录制击键和击键时机 (2)scriptreplay可以回放该会话 二、技巧 1.录制终端会话 [root@localhost 1]# script -t 2> time.log -a action.sess 阅读全文
posted @ 2020-04-06 19:01 3月の狮子 阅读(431) 评论(0) 推荐(0) 编辑
摘要: 一、起因:我想搭建LNMP环境,需要安装以下rpm包 在使用源码包安装服务程序之前,首先要让安装主机具备编译程序源码的环境,他需要具备C语言、C++语言、Perl语言的编译器,以及各种常见的编译支持函数库程序。因此请先配置妥当Yum软件仓库,然后把下面列出的这些软件包都统统安装上: 1 [root@ 阅读全文
posted @ 2020-04-06 17:32 3月の狮子 阅读(2082) 评论(0) 推荐(0) 编辑
摘要: Step 1 : Options -> Global Options -> General-> Default Session Step 2 : Append to file :追加到文件,不会损失数据 Start new log at midnight :每天更新一个文档,不会显得臃肿 %H :主 阅读全文
posted @ 2020-02-27 23:24 3月の狮子 阅读(359) 评论(0) 推荐(0) 编辑