代码改变世界

随笔档案-2021年09月

How to sort directories (folders) by size in Linux

2021-09-22 18:10 by DataBases, 25 阅读, 收藏, 编辑
摘要: du --si --max-depth=1 /home/ | sort -n -r |more Breakdown:du = show disk usage-si = in human readable (aka "nice") numbers--max-depth=1 only show this 阅读全文

pip install安装python依赖包时报错:command 'gcc' failed with exit status 1的解决方案

2021-09-18 16:13 by DataBases, 940 阅读, 收藏, 编辑
摘要: 环境:Centos 7 Python 2.7 在安装python依赖包时报错:command 'gcc' failed with exit status 1; 解决方案是: sudo yum install python-dev sudo yum install gcc 如果问题还没解决,可以尝试安 阅读全文

启动hadoop进程提示ssh localhost port 22 Connection refused

2021-09-17 17:29 by DataBases, 2050 阅读, 收藏, 编辑
摘要: hadoop配置完成,用start-all.sh启动时提示错误:localhost: ssh: connect to host localhost port 22: Connection refused 【错误原因】分析:由于在生产环境下,ssh的端口被修改成9092,不是使用的默认端口,但是had 阅读全文

基于 Docker 的几种常用 CentOS7 镜像

2021-09-10 16:07 by DataBases, 2896 阅读, 收藏, 编辑
摘要: https://blog.csdn.net/github_39577257/article/details/107180891 # 1 查看系统中是否已经安装了 Dockersystemctl status dockerrpm -qa | grep -E "docker"## 1.1 如果重新安装可 阅读全文
点击右上角即可分享
微信分享提示