摘要:
/etc/my.cnf 默认配置 # For advice on how to change settings please see # http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html [mysqld 阅读全文
摘要:
示例1 function _xwjh() { local cur prev opts COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" # opts="gen init start dele 阅读全文
摘要:
main.py from typing import Union from fastapi import FastAPI from pydantic import BaseModel from typing import Optional import os app = FastAPI() clas 阅读全文
摘要:
python FastAPI 中可以使用的 entrypoint.sh 示例,其他语言写的代码也可以参考,思路类似。 #!/bin/bash set -e if [ ! -v PORT ]; then PORT="8000" fi if [ ! -v HOST ]; then HOST='0.0.0 阅读全文