随笔分类 -  A.工作常用

摘要:实时同步还可以使用inotify+rsync命令,但是不太方便https://www.cnblogs.com/forlive/p/10769895.html sersync还可以实现开机自启动 配置rsync守护进程 安装rsync yum install rsync 修改rsync配置文件/etc 阅读全文
posted @ 2022-12-27 11:53 ForLivetoLearn 阅读(140) 评论(0) 推荐(0) 编辑
摘要:安装字体 安装字体程序 yum -y install cups-libs fontconfig ttmkfdir 创建中文字体目录 mkdir /usr/share/fonts/chinese chmod -R 755 /usr/share/fonts/chinese 在windows中查找字体,上 阅读全文
posted @ 2022-12-21 15:50 ForLivetoLearn 阅读(60) 评论(0) 推荐(0) 编辑
摘要:配置文件格式 [root@yu ~]# cat /etc/logrotate.d/nginx /usr/local/openresty/nginx/logs/*.log { #指定你要切割的文件 daily #每天 rotate 7 #最多保留多少个切割后的日志. missingok #如果对应日志 阅读全文
posted @ 2022-11-28 14:12 ForLivetoLearn 阅读(78) 评论(0) 推荐(0) 编辑
摘要:nssm官网:http://www.nssm.cc/ 下载好nssm包后解压,找到nssm.exe文件,后续操作都需要以命令行启动 1.安装服务 PS E:\> .\nssm.exe install test Administrator access is needed to install a s 阅读全文
posted @ 2022-06-15 16:24 ForLivetoLearn 阅读(1464) 评论(0) 推荐(0) 编辑
摘要:最近发现esxi分配的虚拟机磁盘占满,删除虚拟机中的文件后,esxi中磁盘使用量没有减少的问题 在网上查可以使用vmware-toolbox-cmd命令在虚拟机中回收空间 vmware-toolbox-cmd disk shrink / 但是使用命令后发现报错,提示压缩功能不可用,最终也没查到这个命 阅读全文
posted @ 2022-05-17 10:01 ForLivetoLearn 阅读(1162) 评论(0) 推荐(0) 编辑
摘要:加密 tar zcf - 文件1 文件2 文件夹1 文件夹2 | openssl des3 -salt -k 密码 | dd of=文件名.des3 解密 dd if=文件名.des3 |openssl des3 -d -k 密码 | tar zxf - 解密时-k 密码可以省略,在解密时输入 阅读全文
posted @ 2022-05-09 12:54 ForLivetoLearn 阅读(315) 评论(0) 推荐(0) 编辑
摘要:1.先查看用的哪块网卡上的网,记录下Idx编号,我的是14 C:\Windows\system32>netsh i i show in Idx Met MTU 状态 名称 1 75 4294967295 connected Loopback Pseudo-Interface 1 10 1 65535 阅读全文
posted @ 2021-06-30 16:10 ForLivetoLearn 阅读(4369) 评论(0) 推荐(0) 编辑
摘要:1.下载源码包 http://openresty.org/cn/download.html 2.安装依赖环境 yum -y install sysstat wget net-tools screen lsof tcpdump nc mtr openssl-devel vim bash-complet 阅读全文
posted @ 2021-03-05 13:03 ForLivetoLearn 阅读(703) 评论(0) 推荐(0) 编辑
摘要:原博客:https://help.aliyun.com/knowledge_detail/40818.html 因为在windows上部署了一个年久失修的服务,内存无法自动回收,所以在每天凌晨2:00重启服务器 创建一个TXT文件,添加如下内容。 shutdown -r -f -t 0 # 该命令的 阅读全文
posted @ 2020-11-26 09:54 ForLivetoLearn 阅读(5889) 评论(0) 推荐(0) 编辑
摘要:华为云和AWS云的VPN都是收费的,华为云可以包月或按时间/流量计费,AWS那边没有找到计费方式,貌似是按出网流量算的.打通内网需要华为云和AWS云各创建一个带有公网IP的网关,两个网关分别指向对方的公网IP,网关创建成功后就开始收费.而且需要先创建华为云这边的网关,因为AWS那边的网关创建完成后不 阅读全文
posted @ 2020-11-13 14:15 ForLivetoLearn 阅读(1645) 评论(0) 推荐(0) 编辑
摘要:服务器型号 [root@121 ~]# dmidecode |grep -A4 'System Information' System Information Manufacturer: Dell Inc. Product Name: PowerEdge R430 Version: Not Spec 阅读全文
posted @ 2020-08-24 16:30 ForLivetoLearn 阅读(992) 评论(0) 推荐(0) 编辑
摘要:先去申请企业微信,要以管理员的权限创建机器人,建完机器人后会有一串webhook,类似这种 https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxxxxxxx509-4f42-xxxxxxxx 测试这个钩子能不能用,具体使用方法可以看微信机器人 阅读全文
posted @ 2020-05-29 16:02 ForLivetoLearn 阅读(5249) 评论(0) 推荐(0) 编辑
摘要:原文:https://www.jianshu.com/p/2f93bb771469 1.安装部署 安装编译环境 yum install gcc patch libffi-devel python-devel zlib-devel bzip2-devel openssl-devel ncurses-d 阅读全文
posted @ 2020-04-13 13:52 ForLivetoLearn 阅读(216) 评论(0) 推荐(0) 编辑
摘要:role下载地址 链接:https://pan.baidu.com/s/1DVdt1iykf8z9kqlaqW9p6Q 提取码:cnkx 复制这段内容后打开百度网盘手机App,操作更方便哦 架构 roles目录结构 [root@localhost roles]# tree . ├── keepali 阅读全文
posted @ 2020-03-29 12:56 ForLivetoLearn 阅读(249) 评论(0) 推荐(0) 编辑
摘要:1.在客户端使用ssh-keygen生成ssh登陆公私钥 2.在客户端使用命令ssh-copy-id root@服务端IP输入密码就行了 阅读全文
posted @ 2020-02-14 18:29 ForLivetoLearn 阅读(151) 评论(0) 推荐(0) 编辑
摘要:LVS调度算法参考 RR:轮询 WRR :加权轮询 DH :目标地址哈希 SH:源地址hash LC:最少连接 WLC:加权最少连接,默认 SED:最少期望延迟 NQ:从不排队调度方法 LBLC:基于本地的最少连接 LBLCR:带复制的基于本地的最少连接 ipvsadm命令参考 ipvsadm -A 阅读全文
posted @ 2018-11-22 22:04 ForLivetoLearn 阅读(198) 评论(0) 推荐(0) 编辑
摘要:ansible的使用前提是确保ssh的秘钥登录 ansible <host-pattern> [options] host-pattern:指定运行组 -v:显示更详细信息 -i PATH:手工指定运行组,默认/etc/ansible/hosts -f NUM:并发线程数,默认5 -m MODE:指 阅读全文
posted @ 2018-08-08 15:53 ForLivetoLearn 阅读(209) 评论(0) 推荐(0) 编辑
摘要:因为机房内的服务器并不是所有都能上外网,所以利用zabbix官方源的安装方法就行不通了,又嫌弃编译安装麻烦,所以这里选择离线RPM包安装zabbix。(如需完整rpm包可以留言与我联系) 下载zabbix离线安装包 1.首先在可以上外网的测试机上(测试机系统版本需要与离线服务器相同)安装zabbix 阅读全文
posted @ 2018-07-24 10:29 ForLivetoLearn 阅读(7226) 评论(2) 推荐(0) 编辑
摘要:centos6 centos7 启动 service NAME start systemctl start NAME[.service] 停止 service NAME stop systemctl stop NAME[.service] 重启 service NAME restart system 阅读全文
posted @ 2018-06-25 11:38 ForLivetoLearn 阅读(421) 评论(0) 推荐(0) 编辑
摘要:用于建立安全站点的工具,颁发证书,例如https,ftps等 默认配置文件: [root@bogon CA]# cat /etc/pki/tls/openssl.cnf [ CA_default ] dir = /etc/pki/CA #CA默认工作目录 certs = $dir/certs #CA 阅读全文
posted @ 2018-06-04 17:28 ForLivetoLearn 阅读(412) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示