03 2023 档案

摘要:准备工作 创建roles目录 # mkdir -pv /data/apps/ansible/roles/nginx/{files,tasks,handlers,templates,vars} hosts [ubuntu] 172.16.18.31 ansible_ssh_port=22 ansibl 阅读全文
posted @ 2023-03-31 17:05 小吉猫 阅读(148) 评论(0) 推荐(0)
摘要:模块说明 控制远程主机上的 systemd 单元(服务、计时器等)。 参数说明 Parameter Comments daemon_reexec aliases: daemon-reexec boolean added in Ansible 2.8 在执行任何其他操作之前运行 daemon_reex 阅读全文
posted @ 2023-03-31 15:52 小吉猫 阅读(643) 评论(0) 推荐(0)
摘要:模块说明 Manage services 参数说明 Parameter Comments arguments aliases: args string 命令行上提供了其他参数。 将远程主机与systemd一起使用时,此设置将被忽略。 enabled boolean 服务是否应在启动时启动。 至少需要 阅读全文
posted @ 2023-03-31 15:31 小吉猫 阅读(311) 评论(0) 推荐(0)
摘要:模块说明 设置文件、目录或符号链接及其目标的属性。 或者,删除文件、符号链接或目录。 许多其他模块支持与该模块相同的file选项 包括ansible.builtin.copy、ansible.builtin.template和ansible.builtin.assemble。 参数说明 Parame 阅读全文
posted @ 2023-03-31 15:07 小吉猫 阅读(211) 评论(0) 推荐(0)
摘要:模块说明 该unarchive模块解压缩存档。它不会解压缩不包含存档的压缩文件。 默认情况下,它会在解包之前将源文件从本地系统复制到目标。 设置remote_src=yes为解压缩目标上已存在的存档。 在目标主机上需要zipinfo和gtar/unzip命令。 需要目标主机上的zstd命令来展开.t 阅读全文
posted @ 2023-03-31 14:40 小吉猫 阅读(324) 评论(0) 推荐(0)
摘要:模块说明 管理用户帐户和用户属性。 此模块用于useradd创建、usermod修改和userdel删除帐户。 参数 Parameter Comments append boolean 如果true,将用户添加到 中指定的组groups。 如果false,用户将只被添加到在指定的组中groups,将 阅读全文
posted @ 2023-03-31 13:00 小吉猫 阅读(249) 评论(0) 推荐(0)
摘要:参数 参数 选项/默认值 描述 gidinterger 要为组设置的可选 GID。 localboolean false ←(默认) true 强制在实现它的平台上使用“local”命令替代项。这在要操作本地组时使用集中式身份验证的环境中非常有用。(例如,它使用 代替lgroup addgroupa 阅读全文
posted @ 2023-03-31 12:42 小吉猫 阅读(55) 评论(0) 推荐(0)
摘要:准备工作 创建roles目录 # mkdir -pv /data/apps/ansible/roles/ubuntu/{tasks,handlers,templates,vars,files} hosts [ubuntu] 172.16.18.31 ansible_ssh_port=22 ansib 阅读全文
posted @ 2023-03-30 17:30 小吉猫 阅读(202) 评论(3) 推荐(0)
摘要:密码复杂度策略 安装密码质量检查库 # apt -y install libpam-pwquality 设置密码过期的天数 用户必须在几天内更改密码。此设置仅在创建用户时产生影响,不会影响现有用户。如果设置为现有用户,请运行命令 [chage -M (days) (user)]。 查看用户密码有效期 阅读全文
posted @ 2023-03-27 17:03 小吉猫 阅读(6986) 评论(1) 推荐(2)
摘要:influx configs [default] url = "http://localhost:8086" token = "yxhyIIkHRyQMUBKHpMMnOBd-d6DdEr-LLUgZQd0-iNJV3xB3C44AsKjrxCKh084LS2bpl6Yfcyo1mM0BSh0V8A 阅读全文
posted @ 2023-03-26 14:07 小吉猫 阅读(278) 评论(0) 推荐(0)
摘要:设置 InfluxDB 连接 创建一个新的 CLI 配置 # influx config create --config-name wgs-02 --host-url http://localhost:8086 --org wgs --token 59fSTydF26m1P34QUVE3EtAUPb 阅读全文
posted @ 2023-03-26 12:21 小吉猫 阅读(285) 评论(0) 推荐(0)
摘要:部署Influx CLI 下载 Influx CLI # wget https://dl.influxdata.com/influxdb/releases/influxdb2-client-2.6.1-linux-amd64.tar.gz 解压 Influx CLI # tar xf influxd 阅读全文
posted @ 2023-03-25 23:11 小吉猫 阅读(1184) 评论(0) 推荐(0)
摘要:部署 InfluxDB APT方式部署 # wget -q https://repos.influxdata.com/influxdata-archive_compat.key # echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b 阅读全文
posted @ 2023-03-25 22:33 小吉猫 阅读(794) 评论(0) 推荐(0)
摘要:Influxdb # Influxdb --help Start up the daemon configured with flags/env vars/config file. The order of precedence for config options are as follows ( 阅读全文
posted @ 2023-03-25 21:14 小吉猫 阅读(477) 评论(0) 推荐(0)
摘要:{ "registry-mirrors":["https://fv50tv30.mirror.aliyuncs.com","https://reg-mirror.qiniu.com"], "dns":["114.114.114.114","8.8.8.8"], "data-root": "/data 阅读全文
posted @ 2023-03-22 11:22 小吉猫 阅读(172) 评论(0) 推荐(0)
摘要:创建grafana用户 # groupadd -g 1025 -o -r grafana # useradd -M -N -g grafana -o -r -d /data/apps/grafana -s /bin/false -c "grafana Server" -u 1025 grafana 阅读全文
posted @ 2023-03-17 16:54 小吉猫 阅读(697) 评论(0) 推荐(0)
摘要:环境 # cat /etc/issue Ubuntu 22.04.1 LTS \n \l 下载AmlogicKitchen # git clone https://github.com/xKern/AmlogicKitchen.git # cd AmlogicKitchen # git submod 阅读全文
posted @ 2023-03-15 17:50 小吉猫 阅读(1594) 评论(0) 推荐(0)
摘要:git设置 # git config --global http.postBuffer 1048576000 manifest.xml 原始的manifests.xml文件在源头代码repo仓库中 # ls -l .repo/ total 40 drwxrwxr-x 5 1001 1001 4096 阅读全文
posted @ 2023-03-14 16:04 小吉猫 阅读(770) 评论(0) 推荐(0)
摘要:ubuntu $ sudo apt-get install repo 清华源 # curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o repo # chmod +x repo google $ mkdir -p ~/.bin $ PAT 阅读全文
posted @ 2023-03-14 15:42 小吉猫 阅读(2010) 评论(0) 推荐(0)
摘要:下载explorer # git clone https://github.com/ethereumclassic/explorer docker-compose.yml version: '3' services: app: build: . command: ./app.js restart: 阅读全文
posted @ 2023-03-08 17:17 小吉猫 阅读(218) 评论(0) 推荐(0)
摘要:安装jdk11 下载jdk # wget -O jdk-11.0.18_linux-x64_bin.tar.gz https://download.oracle.com/otn/java/jdk/11.0.18+9/e9f4529b2fa84718a553a389cb2a6629/jdk-11.0. 阅读全文
posted @ 2023-03-07 19:06 小吉猫 阅读(772) 评论(0) 推荐(0)
摘要:创建用户 # echo -n 'test:' >> passwd.test 生成密码 # openssl passwd test123 >> passwd.test 查看passwd.gerrit # cat passwd.test test:l8YNe5sp98BZE nginx.conf ser 阅读全文
posted @ 2023-03-07 18:36 小吉猫 阅读(149) 评论(0) 推荐(0)
摘要:repo Manifest Format <?xml version="1.0" encoding="UTF-8"?> <manifest> <remote name="aosp" # 在每一个.git/config文件的remote项中用到这个name。remote "aosp" fetch="g 阅读全文
posted @ 2023-03-06 18:01 小吉猫 阅读(2798) 评论(0) 推荐(0)
摘要:下载nessus # curl --request GET --url 'https://www.tenable.com/downloads/api/v2/pages/nessus/files/Nessus-10.5.0-ubuntu1404_amd64.deb' --output 'Nessus- 阅读全文
posted @ 2023-03-05 13:06 小吉猫 阅读(2317) 评论(1) 推荐(2)
摘要:下载nessus # curl --request GET --url 'https://www.tenable.com/downloads/api/v2/pages/nessus/files/Nessus-10.5.0-ubuntu1404_amd64.deb' --output 'Nessus- 阅读全文
posted @ 2023-03-04 19:44 小吉猫 阅读(224) 评论(0) 推荐(0)
摘要:rsyslog 50-default.conf # vim /etc/rsyslog.d/50-default.conf *.=info;*.=notice;*.=warn;\ auth,authpriv.none;\ cron,daemon.none;\ mail,news.none -/var/ 阅读全文
posted @ 2023-03-03 12:18 小吉猫 阅读(177) 评论(0) 推荐(0)
摘要:启用2AF 登录测试 参考文档 https://docs.gitlab.com/ee/security/two_factor_authentication.html#enforce-two-factor-authentication 阅读全文
posted @ 2023-03-02 19:15 小吉猫 阅读(71) 评论(0) 推荐(0)
摘要:环境要求 8 + of CPU 16 GB+ of RAM 50 GB+ of drive space docker-compose.yml version: '3.6' services: web: image: 'gitlab/gitlab-ce:latest' restart: always 阅读全文
posted @ 2023-03-02 17:39 小吉猫 阅读(272) 评论(0) 推荐(0)
摘要:nfs-server IP # ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 阅读全文
posted @ 2023-03-02 11:39 小吉猫 阅读(61) 评论(0) 推荐(0)
摘要:下载sonar-scanner wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.8.0.2856-linux.zip 设置sonar-scanner 解压sonar-sc 阅读全文
posted @ 2023-03-01 18:33 小吉猫 阅读(566) 评论(0) 推荐(0)
摘要:要求 前提条件 sysctl.conf # echo "vm.max_map_count=524288" >> /etc/sysctl.conf # echo "fs.file-max=131072" >> /etc/sysctl.conf # sysctl -p limits.conf # ech 阅读全文
posted @ 2023-03-01 16:36 小吉猫 阅读(976) 评论(0) 推荐(0)
摘要:安装插件 插件安装路径 ls -l /usr/local/sonarqube/extensions/plugins/ total 76 -rw-r--r-- 1 sonarqube sonarqube 737 Feb 3 11:19 README.txt -rw-r--r-- 1 sonarqube 阅读全文
posted @ 2023-03-01 16:31 小吉猫 阅读(140) 评论(0) 推荐(0)
摘要:查看binlog MySQL [(none)]> show binary logs; + + + | Log_name | File_size | + + + | mysql-bin.000246 | 1073742039 | | mysql-bin.000247 | 1073742006 | | 阅读全文
posted @ 2023-03-01 15:13 小吉猫 阅读(31) 评论(0) 推荐(0)
摘要:创建文件存储库配置 echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list 导入存储库签名密钥 wget --quiet - 阅读全文
posted @ 2023-03-01 14:19 小吉猫 阅读(545) 评论(0) 推荐(0)
摘要:方法一:.pgpass 查看postgres家目录 grep postgres /etc/passwd postgres:x:114:119:PostgreSQL administrator,,,:/var/lib/postgresql:/bin/bash 创建.pgpass touch /var/ 阅读全文
posted @ 2023-03-01 14:19 小吉猫 阅读(145) 评论(0) 推荐(0)
摘要:pg_hba.conf 文件格式 local database user auth-method [auth-options] host database user address auth-method [auth-options] hostssl database user address au 阅读全文
posted @ 2023-03-01 14:08 小吉猫 阅读(58) 评论(0) 推荐(0)