自己的学习网站
数据字典表头数据字典查询sqlselect b.表名,b.表描述,b.列名,b.类型,b.长度,b.主键约束,b.唯一约束,b.外键约束,b.可否为空,(case when c.column_name is not null then 'Y' else 'N' end) as 索引字段,b.描述 from (select (select relname from pg_class where oid=a.attrelid) as 表名, (select relname ||'–'||(select description from pg_description where objoid = oid and objsubid = 0) from pg_class where oid=a.attrelid) as 表描述, a.attname as 列名, format_type(a.atttypid,a.atttypmod) as 类型, (case when atttypmod-4>0 then atttypmod-4 else 0 end) as 长度, (case when
项目分工罗列自己负责的项目标准化的代码目录结构Readme说明Dockerfile,所有前后段项目要docker容器化管理自己负责项目服务端重新补充接口或者yapi上补充服务说明数据库表结构说明,重要表的comment补充字段,model上字段补充说明项目中常用功能的抽象画,代码简约化、模块话,复用性强配置中心服务监控,日志监控查看测试、生产环境服务器重启后的服务保活服务端对redis、kafka、es的重复搭建使用问题复杂项目绘制脑图或者流程图对项目业务进行分享讲座支撑类服务,如导入数据、导出数据、私有部署有详细部署手册要做项目详尽说明的word模板 (前后端)整理数据资产数据资产处理层用于抽取数据支撑售前工作对自己common库的维护
创建脚本#!/bin/sh pid=0 proc_num() { num=`ps -ef | grep 项目名称 | grep -v grep | wc -l` return $num } proc_id() { pid=`ps -ef | grep 项目名称 | grep -v grep | awk '{print $2}'` } proc_num #获取进程数 number=$? #获取返回值 if [ $number -eq 0 ] #没有该进程,则重启 then sh 启动脚本.sh # 重启程序 proc_id echo "重启服务" >> watch-server.log else echo "服务正常" fi
K3s 集群搭建系统: centos-9机器名称系统ip用途masterCentos9198.19.249.160 master1Centos9198.19.249.64 Node1Centos9198.19.249.25 Node2Centos9198.19.249.233 替换源# centos 换源 #1、清空 原始源 cd /etc/yum.repos.d/ rm -rf ./* #2、创建新源 vim Centos.repo#3、源内容 [baseos] name=CentOS Stream $releasever - BaseOS #mirrorlist=http://mirrorlist.centos.org/?release=$stream&arch=$basearch&repo=BaseOS&infra=$infra baseurl=https://mirrors.ustc.edu.cn/centos-stream/9-stream/BaseOS/$basearch/os/ gpgcheck=1 enabled=1 gpgkey=file://
如果您看到这篇文章,表示您的 blog 已经安装成功.
Xinbo