logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

Centos7.9一键安装python3.11

卸载就只用删除/usr/local/python-${version}/文件夹就可以了。后面从新安装,在按照上面的步骤从新编译。python3独立安装,不影响自带python2.7使用,使用方法。新版本会更新openssl,需要注意下。

文章图片
#linux#python
批量telnet测试端口脚本

cat /root/iplist.txt | while read linedoresult=`echo -e "\n" | telnet $i 2>/dev/null | grep Connected | wc -l`if [ $result -eq "1" ]; thenecho "$i Network is Open."elseecho "$i Network is Closed."f

普通用户(非root)使用nginx

适用于使用rpm安装的nginx系统centos7添加nginx安装源rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm安装nginxyum install -y nginx启动nginx和配置nginx开机启动service nginx start

#nginx#运维#centos
nginx通过http_x_forwarded_for限制来访IP示例

#http_x_forwarded_for地址不在下列IP中则返回403map $http_x_forwarded_for $accessip{default false;10.10.10.10 true;10.10.10.11 true;10.10.10.12 true;10.10.10.13 true;10.10.10.14 true;10.10.10.15 true;192.168.1.1

#nginx#http#tcp/ip
docker安装open-cmdb

open-cmdb的代码地址https://github.com/open-cmdb/cmdb将下述代码保存到 install_cmdb.py 并执行 sudo python3 install_cmdb.py 即可一键安装。# -*- coding: utf-8 -*-import osimport subprocessimport argparseimport timedef base(cmd)

docker-compose搭建jumpserver2.2(附带QNAP安装方法)

创建随机的SECRET_KEY和BOOTSTRAP_TOKENSECRET_KEY 保护签名数据的密匙, 首次安装请一定要修改并牢记, 后续升级和迁移不可更改, 否则将导致加密的数据不可解密。BOOTSTRAP_TOKEN 为组件认证使用的密钥, 仅组件注册时用。组件指 koko、guacamolevim get_secret_and_token.shif [ ! "$SECRET_KEY" ];

vscode推送代码至gitlab

1.初始化存储库2.输入tag回车提交3.源代码添加远程仓库3.输入gitlab上仓库地址4.登录gitlab添加sshkey(已添加则忽略)打开git bashcd进入代码文件夹git initgit remote add origin http://xxxxxx/xx/wildcard.git5.之后即可使用vscode的各项git功能...

使用securecrt+xming通过x11访问ubuntu可视化程序

按照图修改xming配置 开始->xming->Xlaunch 完成xming会在右下角后台运行。windows在securecrt中打开配置x11地址为127.0.0.1:0.0。windows使用secure+xming通过x11访问ubuntu可视化程序。ubuntu-desktop20.04机器IP:192.168.9.190。登陆ubuntu执行 这里DISPLAY的值为windows机

文章图片
#ubuntu#linux#运维
caddy修改默认监听80、443端口

在/etc/caddy/Caddyfile 最前面写上使用端口。如果安装多个web服务器,需修改caddy监听的配置。重启caddy后监听端口改变。

文章图片
电信宽带配置动态域名和端口映射

动态域名:18081>电信光猫:18081>Openwrt软路由:18081>主机192.168.3.172:8081。测试端口是否连通 https://www.yougetsignal.com/tools/open-ports/Openwrt软路由配置socat(将TCP:18081转发至192.168.3.172TCP:8081)查看当前获取的IP地址 https://www.ip138.co

文章图片
#网络
    共 21 条
  • 1
  • 2
  • 3
  • 请选择