![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
文章平均质量分 70
words8
这个作者很懒,什么都没留下…
展开
-
shell中单引号(‘‘)、双引号(““)、反引号(``)的区别
shell中单引号(’’)、双引号("")、反引号(``)的区别脚本#!/bin/bashdo_date=$1echo '$do_date'echo "$do_date"echo "'$do_date'"echo '"$do_date"'echo `date`echo ${date}结果[evil@hadoop102 bin]$ vim test.sh [evil@hadoop102 bin]$ chmod 777 test.sh [evil@hadoop102 bin]$原创 2021-07-20 13:16:52 · 287 阅读 · 0 评论 -
Linux下mysql导入csv文件
直接上语句mysql>load data infile '/var/lib/mysql/ct/contact.csv' >into table Order character set utf8 >fields terminated by ',' optionally enclosed by '"' escaped by '"' >lines terminated by '\r\n';指令功能load d原创 2021-05-21 09:37:26 · 2662 阅读 · 1 评论 -
ssh免密登入失败(Authentication refused: bad ownership or modes for directory)
现象:配置完免密登入后,部分机器仍需要输入密码才能登入通过命令 /var/log/secure查看日志出现问题的机器Apr 26 22:58:47 hadoop102 sshd[58994]: Authentication refused: bad ownership or modes for directory /home/evil/.sshApr 26 22:58:52 hadoop102 sshd[58994]: Accepted password for evil from 192.1原创 2021-04-27 00:15:08 · 2765 阅读 · 0 评论 -
分布式系统搭建(CentOS7虚拟机)
VM版本:15.0.4 build-12990004Linux: 7.9.2009 (Core)Hadoop: hadoop-2.8.0JDK: jdk1.8.0_161目录1、创建一台虚拟机进行基本配置2、 安装jdk和hadoop3、克隆两台虚拟机4、分布式系统配置5、启动分布式系统1、创建一台虚拟机进行基本配置这里就不进行虚拟机的创建了。这里额外创建了一个evil用户,之后利用evil用户进行hadoop的相关操作。网络配置命令:vim /etc/sysconfi.原创 2021-03-09 14:09:26 · 670 阅读 · 0 评论 -
Linux入门
记录和分享最近所学的Linux,巩固基础和便于日后查找。文中有不对之处,欢迎指出。VM版本:15.0.4 build-12990004Linux:7.9.2009 (Core)这里的知识点主要是基于一个尚硅谷Linux课程所总结的。感兴趣的小伙伴可以点这里 尚硅谷韩老师Linux课程目录一、Linux介绍1、Linux简介2、Linux的特点3、Linux和其他操作系统的区别二、虚拟机和Linux系统安装1、虚拟机安装三、Linux的文件系统四、远程登入(Xshell XFtp)五、vi和vim原创 2021-02-03 08:02:53 · 706 阅读 · 1 评论