上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: 背景 1,swap的用途? swap 分区就是交换分区,(windows平台叫虚拟内存) 在物理内存不够用时, 操作系统会从物理内存中把部分暂时不被使用的数据转移到交换分区, 从而为当前运行的程序留出足够的物理内存空间 2,为什么要关闭swap? swap启用后,在使用磁盘空间和内存交换数据时, 性 阅读全文
posted @ 2021-04-20 10:00 hiyang 阅读(3251) 评论(1) 推荐(1) 编辑
摘要: 主要规则如下: 主机名只允许包含ascii字符里的数字0-9,字母a-zA-Z,连字符-和.。其他都不允许。例如,不允许出现其他标点符号,不允许空格,不允许下划线,不允许中文字符。 主机名的开头和结尾字符不允许是连字符。 主机名强烈建议不要用数字开头,尽管这一条不是强制的。 用小写字母而不用大写字母 阅读全文
posted @ 2021-04-19 12:55 hiyang 阅读(2469) 评论(0) 推荐(0) 编辑
摘要: 注册用户出错 现象 Type Status Report Message /api/v1/user/create Description The origin server did not find a current representation for the target resource o 阅读全文
posted @ 2021-04-01 12:40 hiyang 阅读(84) 评论(0) 推荐(0) 编辑
摘要: error: C++ preprocessor "/lib/cpp" fails sanity check 问题的根源是缺少必要的C++库。如果是CentOS系统,运行,如下命令解决: yum install -y glibc-headers gcc-c++ Ubuntu系统中,运行命令: apt- 阅读全文
posted @ 2021-03-17 12:27 hiyang 阅读(264) 评论(0) 推荐(0) 编辑
摘要: ansible when条件语句用法 参考 基本用法 - hosts: all tasks: - include: Ubuntu.yml when: ansible_os_family == "Ubuntu" - include: RHEL.yml when: ansible_os_family = 阅读全文
posted @ 2021-02-27 11:24 hiyang 阅读(1462) 评论(0) 推荐(0) 编辑
摘要: 单用户模式和救援模式 单用户模式 单用户方式下,系统并没有完全运行进来,只是部分程序运行,这时也不能进行远程登录到Linux系统。在系统发生故障无法启动、或者用户名或密码错误等情况,可以使用单用户模式进行维护,使系统恢复正常。这时的ROOT用户对系统有完全的操作权限,可以修复系统的同时,也能随时的对 阅读全文
posted @ 2021-02-05 21:57 hiyang 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 1 进到kafka的安装目录 2 执行下列语句 find ./libs/ -name \*kafka_\* | head -1 | grep -o '\kafka[^\n]*' kafka_2.10-0.8.2.2.jar 就可以看到kafka的具体版本 其中,2.10为scala版本,0.8.2. 阅读全文
posted @ 2021-01-28 12:17 hiyang 阅读(9958) 评论(0) 推荐(0) 编辑
摘要: dmraid -a no 查看RAID磁盘 mdadm --zero-superblock /dev/sdai 参考 https://blog.csdn.net/kronus/article/details/7313984 dd替代品 http://www.garloff.de/kurt/linux 阅读全文
posted @ 2020-12-22 10:13 hiyang 阅读(1649) 评论(0) 推荐(0) 编辑
摘要: # on a successful verification # 注意需要指定端口,如果是https协议,默认端口也需要指定端口443 $ openssl s_client -quiet -connect jvt.me:443 depth=2 O = Digital Signature Trust 阅读全文
posted @ 2020-12-22 10:05 hiyang 阅读(876) 评论(0) 推荐(0) 编辑
摘要: ipconfig /flushdns 清除DNS缓存,适用于windows chrome://net-internals/#dns 适用于chrome chrome://net-internals/#sockets 适用于chrome 阅读全文
posted @ 2020-12-22 10:03 hiyang 阅读(1003) 评论(0) 推荐(0) 编辑
摘要: 在公司内网,搭建服务器集群时,为了到达一致性,需要对服务器时间进行同步。内网一般不能访问互联网,此时急需一台内部的时间服务器,用于内网机器的时间同步。 安装ntp yum install -y ntp ntpdate 修改配置文件 /etc/ntp.conf driftfile /var/lib/n 阅读全文
posted @ 2020-12-03 22:25 hiyang 阅读(1760) 评论(0) 推荐(0) 编辑
摘要: centos 下安装 oh-my-zsh,使用国内源。 安装zsh yum install -y zsh 使用 curl 安装 curl -fsSL https://gitee.com/pocmon/ohmyzsh/raw/master/tools/install.sh | sh 修改配置文件 # 阅读全文
posted @ 2020-12-01 20:20 hiyang 阅读(828) 评论(0) 推荐(1) 编辑
摘要: 错误 fd: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by fd) 产生原因 由于Linux系统的glibc版本太低,而软件编译时使用了较高版本的glibc引起的! 查看当前版本命令 # strings /lib64/li 阅读全文
posted @ 2020-11-22 23:28 hiyang 阅读(7341) 评论(0) 推荐(1) 编辑
摘要: 1、终端输入 sudo dpkg-reconfigure tzdata 2、选择 Asia(亚洲) 3、选择 Shanghai 阅读全文
posted @ 2020-11-14 12:42 hiyang 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 操作系统版本 Raspbian GNU/Linux 10 (buster) 通过apt-get安装的最高版本是go1.12,要安装最新版本,需要先安装这个版本。 下载源码 wget https://studygolang.com/dl/golang/go1.15.4.src.tar.gz 解压编译 阅读全文
posted @ 2020-11-14 12:40 hiyang 阅读(754) 评论(0) 推荐(0) 编辑
摘要: xfs文件系统 # 查看xfs文件系统卷标 xfs_admin -l /dev/sdz label = "" # 设置xfs文件系统的卷标为test xfs_admin -L test /dev/sdz writing all SBs new label = "test" # 格式化时设置卷标 mk 阅读全文
posted @ 2020-11-12 21:59 hiyang 阅读(899) 评论(0) 推荐(0) 编辑
摘要: 参考 damon # This file is part of systemd. # # systemd is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser Ge 阅读全文
posted @ 2020-10-26 09:55 hiyang 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 现象 - name: Do smthg with countvar command: echo "{{ item }}" with_sequence: start=1 end={{ countvar.stdout|int }} when: countvar.stdout|int >= 1 ansib 阅读全文
posted @ 2020-10-22 14:45 hiyang 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 现象 ZooKeeper在硬盘满后,无法再次启动。 2020-10-20 17:30:46,774 [myid:1] - INFO [main:FileSnap@83] - Reading snapshot /usr/local/zookeeper/data/version-2/snapshot.5 阅读全文
posted @ 2020-10-22 09:53 hiyang 阅读(707) 评论(0) 推荐(0) 编辑
摘要: # vim ~/.my.cnf [client] host=localhost user=liemer password=NeverTellYou 阅读全文
posted @ 2020-09-29 12:37 hiyang 阅读(564) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页