07 2022 档案

摘要:> 阅读全文
posted @ 2022-07-30 00:13 tangshow 阅读(4) 评论(0) 推荐(0) 编辑
摘要:git 阅读全文
posted @ 2022-07-30 00:12 tangshow 阅读(6) 评论(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 阅读(33) 评论(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 阅读(9) 评论(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 阅读(101) 评论(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 阅读(1522) 评论(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 阅读(45) 评论(0) 推荐(0) 编辑
摘要:centos7 yum安装php最低版本>5.2,只能手动安装了 参考 https://blog.csdn.net/qq_37960324/article/details/105248793 阅读全文
posted @ 2022-07-26 14:41 tangshow 阅读(180) 评论(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 阅读(196) 评论(0) 推荐(0) 编辑
摘要:###相关概念 ###普通用户-仅访问指定空间 ######编写yaml: # 账户 apiVersion: v1 kind: ServiceAccount metadata: name: mynameistest namespace: test # 角色权限 apiVersion: rbac.au 阅读全文
posted @ 2022-07-22 11:39 tangshow 阅读(153) 评论(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 阅读(133) 评论(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 阅读(262) 评论(0) 推荐(0) 编辑
摘要:需求 在公网上使用域名且不带端口访问家庭环境下的服务 解决 使用公网服务器的nginx代理家庭宽带下的服务 #####环境说明 1 有一台公网服务器 2 有已经备案的域名 3 家庭宽带具有动态ipv4 ip #####结构图示 云服务器部署nginx 反向代理到指定的域名+端口上 内部服务器上部署d 阅读全文
posted @ 2022-07-20 11:57 tangshow 阅读(601) 评论(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 阅读(149) 评论(0) 推荐(0) 编辑
摘要:搭建方式 使用宝塔面板搭建,操作简单,但是安装的东西多,宝塔会自己控制防火墙开放端口 使用源码手动安装 安装复杂 使用docker安装 简单快捷 最终选择使用dokcer容器安装 docker run -itd --restart=always --net=host --name wordpress 阅读全文
posted @ 2022-07-12 09:48 tangshow 阅读(61) 评论(0) 推荐(0) 编辑
摘要:###新建项目 #####cmd下执行: 创建django项目:django-admin startproject mytest01 进入创建的项目:cd mytest01 创建django文件testdjango:python manage.py startapp testdjango 启动服务, 阅读全文
posted @ 2022-07-07 15:12 tangshow 阅读(135) 评论(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 阅读(667) 评论(0) 推荐(0) 编辑

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