摘要: centos7 sqlite-安装升级编译安装 升级-编译安装 wget https://www.sqlite.org/2019/sqlite-autoconf-3290000.tar.gz tar zxvf sqlite-autoconf-3290000.tar.gz cd sqlite-auto 阅读全文
posted @ 2022-10-09 14:51 tangshow 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 默认端口 介绍 27017 mongod 和 mongos 实例的默认端口,你可以通过 port 或 --port 改变该端口 27018 设置 --shardsvr 运行变量或在配置文件里设置 clusterRole 为 shardsvr 时的默认端口 27019 设置 --configsvr 运 阅读全文
posted @ 2022-10-09 14:42 tangshow 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 使用freeswitch将呼叫送到中继线路或运营商 通过拨号计划将呼叫的主被叫送到指定的中继ip上 定义external接口用于呼入,internal接口用于呼出 ###使用ip方式对接中继线路 #####情况1 主机只有一块网卡一个ip 修改拨号计划 dialplan/call.xml <!--a 阅读全文
posted @ 2022-09-08 21:21 tangshow 阅读(791) 评论(0) 推荐(0) 编辑
摘要: 在django中创建html模板,关联数据,返回给浏览器 #####修改settings.py文件 将 'DIRS': [] 修改为'DIRS': [os.path.join(BASE_DIR, 'templates')], #####项目目录下创建模板文件夹templates #####templ 阅读全文
posted @ 2022-09-05 22:22 tangshow 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 参考自https://blog.csdn.net/qq_38446413/article/details/106299429 #####概念: FastDFS服务端有两个角色:跟踪器(tracker)和存储节点(storage)。 跟踪器:主要做调度工作,在访问上起负载均衡的作用。 存储节点:存储文 阅读全文
posted @ 2022-08-24 15:00 tangshow 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 阿里图标 https://www.iconfont.cn/collections/index?spm=a313x.7781069.1998910419.da2e3581b&type=1 uview https://www.uviewui.com/components/intro.html 阅读全文
posted @ 2022-08-24 11:46 tangshow 阅读(8) 评论(0) 推荐(0) 编辑
摘要: #####安装脚本 #使用 docker部署fastdfs单机 echo "使用 docker部署fastdfs单机" ip="192.168.1.58" if [ -d "/usr/local/FastDfs/data" ]; then echo "/usr/local/FastDfs/data 阅读全文
posted @ 2022-08-24 10:45 tangshow 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 进入容器修改密码 grafana-cli admin reset-admin-password admin123 阅读全文
posted @ 2022-08-15 16:38 tangshow 阅读(54) 评论(0) 推荐(0) 编辑
摘要: #####模板官网 13402 https://grafana.com/grafana/dashboards/ #####k8s模板 id 13402 grafana版本 7.2 #####node模板 #####mysql模板 阅读全文
posted @ 2022-08-15 16:24 tangshow 阅读(547) 评论(0) 推荐(0) 编辑
摘要: win环境下使用ffmpeg 转码视频 使用gpu加速转码过程 #####安装ffmpeg ...... 安装显卡支持 参考自https://blog.csdn.net/y534560449/article/details/121539699 查看显卡是否支持CUDA https://develop 阅读全文
posted @ 2022-08-11 00:49 tangshow 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 官网 https://nextcloud.com/ github https://github.com/chrootLogin/docker-nextcloud 客户端 https://nextcloud.com/install/#install-clients #####网络拓扑 nextclou 阅读全文
posted @ 2022-08-09 22:49 tangshow 阅读(49) 评论(0) 推荐(0) 编辑
摘要: win10安装svn服务端 参考自https://blog.csdn.net/weixin_41986096/article/details/105035328 #####下载 https://subversion.apache.org/packages.html #####安装 根据提示下一步安装 阅读全文
posted @ 2022-08-04 22:23 tangshow 阅读(91) 评论(0) 推荐(0) 编辑
摘要: centos7 sqlite-安装升级编译安装 ###升级-编译安装 wget https://www.sqlite.org/2019/sqlite-autoconf-3290000.tar.gz tar zxvf sqlite-autoconf-3290000.tar.gz cd sqlite-a 阅读全文
posted @ 2022-08-04 11:41 tangshow 阅读(162) 评论(0) 推荐(0) 编辑
摘要: > 阅读全文
posted @ 2022-07-30 00:13 tangshow 阅读(1) 评论(0) 推荐(0) 编辑
摘要: git 阅读全文
posted @ 2022-07-30 00:12 tangshow 阅读(2) 评论(0) 推荐(0) 编辑
摘要: docker system df Docker整体磁盘使用率的概况,包括镜像、容器、本地volume docker system prune !!!注意 清理没有使用的数据,包括镜像数据,已经停止的容器 docker system events docker system info docker s 阅读全文
posted @ 2022-07-28 22:48 tangshow 阅读(30) 评论(0) 推荐(0) 编辑
摘要: ######设置中文和上海时间,修改settings.py LANGUAGE_CODE = 'zh-Hans' #中文 TIME_ZONE = 'Asia/Shanghai' # 时区配置为上海 USE_TZ = False #设置为True时,django会使用默认时区America/Chicag 阅读全文
posted @ 2022-07-28 22:15 tangshow 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 在centos7 上部署django 项目 参考自https://blog.csdn.net/u014651560/article/details/125221725 #####环境准备 yum install python3 yum install python36-devel python3 - 阅读全文
posted @ 2022-07-28 18:17 tangshow 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 报错提示: WARNING: Running pip install with root privileges is generally not a good idea. Try `__main__.py install --user` instead. Collecting uwsgi Using 阅读全文
posted @ 2022-07-28 14:55 tangshow 阅读(1490) 评论(0) 推荐(0) 编辑
摘要: /etc/yum.repos.d/CentOS-Base.repo CentOS-Base.repo The mirror system uses the connecting IP address of the client and the update status of each mirror 阅读全文
posted @ 2022-07-27 16:14 tangshow 阅读(43) 评论(0) 推荐(0) 编辑
摘要: centos7 yum安装php最低版本>5.2,只能手动安装了 参考 https://blog.csdn.net/qq_37960324/article/details/105248793 阅读全文
posted @ 2022-07-26 14:41 tangshow 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 参考自 yum -y install openssl-devel pcre-devel expat-devel libtool wget https://archive.apache.org/dist/httpd/httpd-2.2.15.tar.gz tar -zxvf httpd-2.2.15. 阅读全文
posted @ 2022-07-26 14:39 tangshow 阅读(169) 评论(0) 推荐(0) 编辑
摘要: ###相关概念 ###普通用户-仅访问指定空间 ######编写yaml: # 账户 apiVersion: v1 kind: ServiceAccount metadata: name: mynameistest namespace: test # 角色权限 apiVersion: rbac.au 阅读全文
posted @ 2022-07-22 11:39 tangshow 阅读(149) 评论(0) 推荐(0) 编辑
摘要: ###kubernetes dashboard 查看的token不能使用的原因 在dashboard面板查看的token是bash64编码后的值 使用 kubectl get secret namespace-controller-token-4nfh7 -n kube-system -o json 阅读全文
posted @ 2022-07-22 10:44 tangshow 阅读(130) 评论(0) 推荐(0) 编辑
摘要: #####安装 yum install snapd systemctl enable --now snapd.socket ln -s /var/lib/snapd/snap /snap snap install core snap refresh core snap install --class 阅读全文
posted @ 2022-07-21 13:52 tangshow 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 需求 在公网上使用域名且不带端口访问家庭环境下的服务 解决 使用公网服务器的nginx代理家庭宽带下的服务 #####环境说明 1 有一台公网服务器 2 有已经备案的域名 3 家庭宽带具有动态ipv4 ip #####结构图示 云服务器部署nginx 反向代理到指定的域名+端口上 内部服务器上部署d 阅读全文
posted @ 2022-07-20 11:57 tangshow 阅读(514) 评论(0) 推荐(0) 编辑
摘要: 在k8s上部署prometheus #####环境 k8s版本 1.23.5 #####准备 下载镜像 git clone https://github.com/coreos/kube-prometheus 替换镜像 vim kubeStateMetrics-deployment.yaml 修改 i 阅读全文
posted @ 2022-07-19 14:46 tangshow 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 搭建方式 使用宝塔面板搭建,操作简单,但是安装的东西多,宝塔会自己控制防火墙开放端口 使用源码手动安装 安装复杂 使用docker安装 简单快捷 最终选择使用dokcer容器安装 docker run -itd --restart=always --net=host --name wordpress 阅读全文
posted @ 2022-07-12 09:48 tangshow 阅读(54) 评论(0) 推荐(0) 编辑
摘要: ###新建项目 #####cmd下执行: 创建django项目:django-admin startproject mytest01 进入创建的项目:cd mytest01 创建django文件testdjango:python manage.py startapp testdjango 启动服务, 阅读全文
posted @ 2022-07-07 15:12 tangshow 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 简单搭建并测试rabbitmq #####使用容器搭建 docker pull rabbitmq docker run -id --hostname myrabbit --name rabbitmq1 -p 15672:15672 -p 5672:5672 rabbitmq 15672用于页面访问使 阅读全文
posted @ 2022-07-07 10:03 tangshow 阅读(656) 评论(0) 推荐(0) 编辑
摘要: 打包文件 pyinstaller -F xxx.py #–icon=图标路径 #-F 打包成一个exe文件 #-w 使用窗口,无控制台 #-c 使用控制台,无窗口 #-D 创建一个目录,里面包含exe以及其他一些依赖性文件 #pyinstaller -h 来查看参数 #有命令窗口弹出 pyinsta 阅读全文
posted @ 2022-06-29 16:12 tangshow 阅读(20) 评论(0) 推荐(0) 编辑
摘要: logging ... loguru 参考自: https://blog.csdn.net/weixin_44777680/article/details/119329911 阅读全文
posted @ 2022-06-27 09:40 tangshow 阅读(6) 评论(0) 推荐(0) 编辑
摘要: ###win客户端 #####安装 下载地址 https://build.openvpn.net/downloads/ 版本2.4.12,默认安装就行 安装后在对应的路径下放置如下文件 点击图标启动,连接成功会在任务链显示一个绿色图标,鼠标悬停可查看ip #####设置启动自动连接 鼠标右键单击启动 阅读全文
posted @ 2022-06-20 11:23 tangshow 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 传统的MBR分区表格式,仅支持最大四个主分区,而且不可以格式化2TB以上的磁盘,因此,大磁盘更适合使用parted工具进行GPT的分区格式。 执行lsblk查看磁盘情况 执行parted开始分区 格式化 mkfs.xfs /dev/sda1 #####挂载 创建挂载点 mkdir /recordin 阅读全文
posted @ 2022-06-16 15:50 tangshow 阅读(579) 评论(0) 推荐(0) 编辑
摘要: prometheus监控系统搭建 其他参考https://blog.csdn.net/weixin_43815140/article/details/119730821 ###服务端安装 >服务端使用docker部署prometheus、grafana #####准备文件 mkdir -p /dat 阅读全文
posted @ 2022-06-14 15:36 tangshow 阅读(292) 评论(0) 推荐(0) 编辑
摘要: kubernetes1.23.x部署ingress-nginx #####版本说明 kubernetes: 1.23.5 ingress-nginx: controller-v1.1.1 #####官方yaml文件下载地址 https://raw.githubusercontent.com/kube 阅读全文
posted @ 2022-06-11 12:30 tangshow 阅读(305) 评论(0) 推荐(0) 编辑
摘要: k8s集群由于某些原因重置,并添加节点后,部分节点状态为NotReady 查看系统日志提示 "Unable to update cni config" err="no networks found in /etc/cni/net.d" "Container runtime network not r 阅读全文
posted @ 2022-06-09 13:19 tangshow 阅读(1854) 评论(0) 推荐(0) 编辑
摘要: ######安装 yum update -y yum groupinstall Xfce yum groupinstall "X Window system" systemctl isolate graphical.target ######查看语言 cat /etc/locale.conf ### 阅读全文
posted @ 2022-05-31 10:36 tangshow 阅读(208) 评论(0) 推荐(0) 编辑
摘要: centos7环境下 一键制作mysql docker镜像,并安装 ###centos7环境下 一键制作mysql docker镜像,并安装 shell脚本内容如下: #docker自动安装mysql echo -e "\033[32m '>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 阅读全文
posted @ 2022-05-20 15:45 tangshow 阅读(137) 评论(0) 推荐(0) 编辑
摘要: mysql备份和导入 以mysql运行在192.168.2.199:3306,用户root 为例 ###使用mysqldump备份 安装mysql会默认安装mysqldump,手动安装: yum -y install mysql-client ######1备份所有库 #不推荐使用!!!会备份所有库 阅读全文
posted @ 2022-05-14 14:29 tangshow 阅读(307) 评论(0) 推荐(0) 编辑