摘要: Alidns:223.5.5.5223.6.6.6 DNSPod:119.29.29.29 Baidu dns:180.76.76.76 114 dns:114.114.114.114114.114.115.115 Google dns:8.8.8.84.4.4.4 Cloudflare:1.1.1 阅读全文
posted @ 2022-10-21 10:09 Lambeto 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 给远程机器添加用户 Ansbile命令: # ansible elk06 -m user -a "name=elastic uid=4000 state=present" PlayBook(YAML): # ansible-playbook user.yml # cat user.yml - nam 阅读全文
posted @ 2021-10-12 18:22 Lambeto 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 安装docker # yum -y install yum-utils device-mapper-persistent-data lvm2 # yum-config-manager -y --add-repo http://mirrors.aliyun.com/docker-ce/linux/ce 阅读全文
posted @ 2021-09-26 14:13 Lambeto 阅读(840) 评论(0) 推荐(0) 编辑
摘要: MSSQL Server: https://www.microsoft.com/zh-cn/sql-server/ MySQL 家族: MySQL Community Server: https://dev.mysql.com/downloads/mysql/ MariaDB Server: htt 阅读全文
posted @ 2021-08-25 17:33 Lambeto 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 1、按日期查询索引文件: # curl -u username:password -s -XGET 'http://192.168.1.100:9210/_cat/indices/*-2021.08.01?v' 2、查询某一索引文件的结构: # curl -u username:password - 阅读全文
posted @ 2021-08-03 17:44 Lambeto 阅读(449) 评论(0) 推荐(0) 编辑
摘要: # man iostat NAME iostat - Report Central Processing Unit (CPU) statistics and input/output statistics for devices and partitions. 报告CPU及输入、输出设备及分区的状态 阅读全文
posted @ 2021-07-14 17:52 Lambeto 阅读(148) 评论(0) 推荐(0) 编辑
摘要: # vim test2.txt Christian Scott lives here and will put on a Christmas party. There are around 30 to 35 people invited. They are: Tom Dan Rhonda Savag 阅读全文
posted @ 2021-07-05 18:50 Lambeto 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 测试文档: # cat test.txt This is line number 1. This is line number 2. This is line number 3. This is line number 4. sed s 替换文本命令: 将每一列中第2个 test 替换为 trial 阅读全文
posted @ 2021-07-05 16:02 Lambeto 阅读(114) 评论(0) 推荐(0) 编辑
摘要: Ansible 有很多专业的配置,但是如下简单几步就可以让你先玩起来了 ~_~ 安装: # yum install ansible 服务器免密认证: 如果对方直接有 authorized_keys 文件,则直接添加 key 内容 。 # ssh root@192.168.1.101 'cat >> 阅读全文
posted @ 2021-06-01 15:41 Lambeto 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 系统环境: 虚拟机:VMware Workstation 15 Pro 操作系统:Windows 10 20H2 19042.508 Docker版本:Docker version 20.10.6 Docker for Windows版本:Docker Desktop 3.3.3 (64133) D 阅读全文
posted @ 2021-05-14 14:48 Lambeto 阅读(801) 评论(0) 推荐(0) 编辑
摘要: 常用 shell 命令: 0a、ls命令:查找文件。 # ls /etc/ 0b、grep命令:筛选结果。 # ls /etc/ | grep "passwd" 0c、awk命令:按列筛选。 # ls -l /etc/ | awk '{print $8}' 0d、sort命令:按列排序。 # ls 阅读全文
posted @ 2021-05-12 11:30 Lambeto 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 1、机器信息: node01:192.168.1.102node01:192.168.1.104 2、实现效果: node01 --> node02 免密; node02 --> node01 不免密 3、node01端: node01 把自己公钥内容(id_rsa.pub) 增加到 node02 阅读全文
posted @ 2021-04-29 18:55 Lambeto 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 一、数据库相关命令: 1、显示当前数据库版本号: rs1:SECONDARY> db.version() 3.6.3 2、查询当前所连接的 MongoDB 实例: rs1:SECONDARY> db.getMongo() connection to 127.0.0.1:27018 3、查询当前所使用 阅读全文
posted @ 2021-02-19 11:52 Lambeto 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 00-Installation Summary: 01-Date & Time 02-Keyboard Layout 03-Language Support 04-Installation Source 05-Software Selection 06-Manual Partitioning 07- 阅读全文
posted @ 2020-12-24 14:41 Lambeto 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 一般服务器会配备两个或者多个硬盘来组建磁盘阵列,以超微主板为例,其它品牌主板设置方法大同小异,可以参考。 1、首先将SATA模式改成RAID模式;服务器电脑开机之后,我们反复按下“DEL”键,进入主板BIOS界面中,切换至“Advanced”,如下图所示。 2、将configure SATA as的 阅读全文
posted @ 2020-12-22 11:43 Lambeto 阅读(7687) 评论(0) 推荐(0) 编辑
摘要: 1、按条件查询表中数据: mysql> select user,host,password from MyTable; 2、按组合条件查询表中数据: mysql> select id, password, username, concat(first_name,' ',last_name)as fu 阅读全文
posted @ 2020-09-28 11:36 Lambeto 阅读(145) 评论(0) 推荐(0) 编辑
摘要: \l \list 列出当前可用的数据库。\c \connect + dbname 连接到一个新的数据库。\dt 列出当前数据库中可用的数据表。\d + tablename 列出指定数据表的表结构。\dn 列出当前数据库的schemas。\df 列出当前数据库的functions。\h 获取SQL语句 阅读全文
posted @ 2020-09-17 14:48 Lambeto 阅读(2443) 评论(0) 推荐(0) 编辑
摘要: Let's Encrypt 默认情况下只提供三个月的有效期,在有效期剩余半个月的时候,Let's Encrypt 会发送邮件给你,提醒你需要做证书的续期操作。一、验证域名文件剩余有效期:可以通过以下命令查看证书的剩余有效期限: # /usr/local/letsencrypt/certbot-aut 阅读全文
posted @ 2020-09-03 15:33 Lambeto 阅读(2817) 评论(0) 推荐(1) 编辑
摘要: 一、不重启电脑,禁用启用swap,立刻生效 禁用命令: # swapoff -a 启用命令: # swapon -a 查看交换分区的状态: # free -mh 二、重新启动电脑,永久禁用Swap 把根目录文件系统设为可读写 # mount -n -o remount,rw / 用vi修改/etc/ 阅读全文
posted @ 2020-08-25 16:13 Lambeto 阅读(4096) 评论(0) 推荐(0) 编辑
摘要: NTP 是 Network Time Protocol 的简称,也就是网络时间协议。而 NTP 服务器是可以通过网络来同步时间的服务器。国内用阿里云、国外用谷歌或者苹果。也有朋友经过测试苹果在国内也是可以使用的,大家可以试试看。国内知名公共 NTP 服务器地址: 国家授时中心 NTP 服务器(NTS 阅读全文
posted @ 2020-08-10 12:13 Lambeto 阅读(13069) 评论(0) 推荐(0) 编辑