上一页 1 2 3 4 5 6 7 ··· 13 下一页
摘要: 1.docker-compose官方地址:https://docs.docker.com/compose/install/ 2.Harbor官方地址:https://github.com/goharbor/harbor 3.安装docker-compose: 下载docker-compose:cur 阅读全文
posted @ 2021-08-02 21:09 chenjianwen 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 1.docker官方文档地址:https://docs.docker.com/engine/install/centos/ 2.使用国内阿里云源安装最新版docker-ce 卸载旧版本docker:yum remove docker docker-client docker-client-lates 阅读全文
posted @ 2021-08-02 21:00 chenjianwen 阅读(1903) 评论(13) 推荐(1) 编辑
摘要: 1.下载地址:https://github.com/felixse/FluentTerminal/releases https://github.com/felixse/FluentTerminal/releases/download/0.7.5.0/FluentTerminal.Package_0 阅读全文
posted @ 2021-07-19 15:03 chenjianwen 阅读(599) 评论(0) 推荐(0) 编辑
摘要: 1.安装scoop,通过scoop命令行来管理windows软件:https://sspai.com/post/52496 【需要FQ(fanqiang)才能安装成功】 在 PowerShell 中输入下面内容,保证允许本地脚本的执行: set-executionpolicy remotesigne 阅读全文
posted @ 2021-07-19 14:37 chenjianwen 阅读(504) 评论(0) 推荐(0) 编辑
摘要: 1.centos7内置python,安装pip yum install -y python-pip 后,在使用pip中有一些库安装会提示升级pip,但升级后,pip不可用了 2.解决方法1:卸载重装pip:yum remove -y python-pip && yum install -y pyth 阅读全文
posted @ 2021-07-17 11:02 chenjianwen 阅读(971) 评论(0) 推荐(0) 编辑
摘要: 1.前言:nginx自带目录索引,功能简单、样式也不好看,而且长文件名还显示不全,使用fancyindex插件来做索引,配上一个漂亮的主题还有搜索的功能,使界面看起来赏心悦目。 2.软件版本 web:Nginx 1.14.0 fancy: fancyindex V0.4.3 fancy-theme: 阅读全文
posted @ 2021-07-01 14:30 chenjianwen 阅读(1695) 评论(0) 推荐(0) 编辑
摘要: 服务端: 1.以本机为rsync服务端,ip地址:xxx.xxx.xxx.xxx 2.rsync服务端配置文件说明: cat /etc/rsyncd.conf #文件路径 uid=root #用户 gid=root #用户组 max connections=2000 #最大连接数timeout=60 阅读全文
posted @ 2021-06-30 20:19 chenjianwen 阅读(119) 评论(0) 推荐(0) 编辑
摘要: Linux 入侵类问题排查思路 来源:https://cloud.tencent.com/document/product/296/9604 本文档将指导您如何排查 Linux 入侵类问题并提供被入侵后的安全优化建议。 深入分析,查找入侵原因 一、检查隐藏帐户及弱口令 检查服务器系统及应用帐户是否存 阅读全文
posted @ 2021-06-24 10:03 chenjianwen 阅读(259) 评论(0) 推荐(0) 编辑
摘要: server { #获取url完整请求 set $URL $scheme://$http_host$request_uri; #根据获取的URL匹配一些限制字符,满足条件拒绝访 #这里匹配 远程代码执行漏洞- "\x03\x00\x00/*\xE0\x00\x00\x00\x00\x00Cookie 阅读全文
posted @ 2021-06-03 11:50 chenjianwen 阅读(2518) 评论(0) 推荐(0) 编辑
摘要: 1.发现很多网站被攻击都是来自海外的肉鸡,所以禁掉海外IP访问网站也是不错的防护手段,而且国内网站几乎很少有国外用户访问,称之为大局域网也不为过。 2.绝大多数域名解析服务商都是提供电信联通移动海外线路区分解析的,所以我们可以充分利用这个功能,来禁止海外 3.设置后等30分钟后我们再用ping工具测 阅读全文
posted @ 2021-06-03 09:33 chenjianwen 阅读(1409) 评论(0) 推荐(0) 编辑
摘要: 1.修改添加/etc/profile内容 cat <<EOF >> /etc/profile ##优化history记录历史 export HISTTIMEFORMAT="%F %T\`who -u am i 2>/dev/null| awk '{print \$NF}'|sed -e 's/[() 阅读全文
posted @ 2021-04-12 10:19 chenjianwen 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 1.项目结构 2.根据后端api编写 super_cmdb/api/api.js import axios from 'axios' var boamp_api_address = 'http://127.0.0.1:8001'; export function getVersionList() { 阅读全文
posted @ 2021-03-19 11:01 chenjianwen 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 1.安装django-rest-framework pip install django-rest-frameworkpip install django-cors-headers 2.创建项目app super_cmdb_api python manage.py startapp super_cm 阅读全文
posted @ 2021-03-18 16:02 chenjianwen 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 1.查看机器硬盘列表:fdisk -l 2.格式化新硬盘:mkfs.ext4 /dev/vdb 3.获取新硬盘UUID:blkid /dev/vdb 4.修改vim /etc/fstab 5.生效挂载:mount -a 阅读全文
posted @ 2021-02-24 16:32 chenjianwen 阅读(425) 评论(0) 推荐(0) 编辑
摘要: 1.直接上nginx配置文件 注意: 后端端口使用wss:proxy_pass https://wss_8; 后端端口使用ws :proxy_pass http://wss_8; upstream wss_8{ server 127.0.0.1:8004; } ### server { listen 阅读全文
posted @ 2021-02-09 10:41 chenjianwen 阅读(6213) 评论(0) 推荐(0) 编辑
摘要: 访问会以下载文件的方式将获取到的值保存在文件中 upstream docker_2 { server 10.17.172.244:8080; } server { listen 81; server_name localhost; access_log /var/log/nginx/mytest_a 阅读全文
posted @ 2021-02-08 11:52 chenjianwen 阅读(679) 评论(0) 推荐(0) 编辑
摘要: 1.匹配url:https://bby.ios.xxx.com:8081/zd?sid=15&key=repx_2530 匹配到sid的值根据sid值进行代理分发 2.达到效果:请求https://bby.ios.xxx.com:8081/xxxx?sid=xxx&xxxxx 根据sid的值转发到对 阅读全文
posted @ 2021-02-08 11:46 chenjianwen 阅读(5316) 评论(0) 推荐(0) 编辑
摘要: 2021-02-02 15:26 发布至今 2021-08-19 16:30 终于得到解决办法: 经查阅资料得知: 1.mysql5.7的log_warnings默认值是2,https://dev.mysql.com/doc/refman/5.7/en/server-system-variables 阅读全文
posted @ 2021-02-02 15:26 chenjianwen 阅读(12113) 评论(0) 推荐(0) 编辑
摘要: 1.创建任务 2.配置 BUILD_ID=dontKillMe #防止进程未执行完被杀 echo "${SERVER_ID} ${DATE} ${TIME} ${GAME}" sh restore.sh ${SERVER_ID} ${DATE} ${TIME} ${GAME} 3.在jenkins工 阅读全文
posted @ 2021-01-20 16:54 chenjianwen 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 1.pip的镜像源是国外时,经常遇到‘time out’,我们只需要把源地址改为国内可用的镜像网站就可以避免这个问题。 # 目前来看,豆瓣好像会缺包,可以尝试其他pip源pip --default-timeout=1000 install -i http://mirrors.aliyun.com/p 阅读全文
posted @ 2020-12-18 14:53 chenjianwen 阅读(103) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 13 下一页