摘要: 1、指定读取的配置路径 配置在 application.yml 文件里面 server: port: ${SERVER_PORT:10102} spring: application: name: config profiles: active: ${PROFILE:native} manageme 阅读全文
posted @ 2023-02-14 18:19 aaacarrot 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 按进程消耗内存多少排序的方法 ps -e -o 'pid,comm,args,pcpu,rsz,vsz,stime,user,uid' --sort -rsz | more 参数解析: -e 显示所有进程 -o 定制显示信息 pid 进程ID comm 进程名 args 启动命令 pcpu 占用CP 阅读全文
posted @ 2023-02-14 17:41 aaacarrot 阅读(248) 评论(0) 推荐(0) 编辑
摘要: echo "get key" | redis-cli -h 127.0.0.1 -p 6379 -a '123456' -n 5 > /tmp/redis_data.log 因为在命令行输入了密码,会报一个警告:redis using a password on the command line 但 阅读全文
posted @ 2023-02-14 11:58 aaacarrot 阅读(15) 评论(0) 推荐(0) 编辑