Giter Club home page Giter Club logo

tea-eggs's Introduction

tea-eggs

利用ansible给程序员节省一个吃茶叶蛋的时间。

前置工作

单元测试

pytest

代码规范化检测

pylint --rcfile=default.pylintrc  --ignore=playbook.py */*.py

生成依赖requirements.txt

pipreqs  --ignore=venv,web-server . --force

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

模型说明

osusers

linux系统管理用户的工具集合

  • 增加用户(用户组是用户的组)
  • 给用户重置密码
  • 更新用户密钥
  • 增加用户辅助组
  • 增加sudo权限

filesystem

linux常用文件操作系统操作

  • 创建swapfile
  • 创建LVM
  • 创建文件(夹)
  • 更改文件(夹)属性()
  • 文件挂载(修改 /etc/fstab)

software

  • 安装常用软件: nginx,mysql,postgresql,docker,docker-compose
  • 指定软件更新.
  • 常用软件更新.
  • 操作系统备份.
  • 重启软件服务

安全

  • 更新sshd文件
  • 打开防火墙某端口
  • 关闭防火墙某端口

web说明

目录: webService/osUser

启动命令: uvicorn main:app

http://127.0.0.1:8000/osuser/docs

可以查看web接口。

tools

系统运行涉及的常用工具

运行程序

cd webService
uvicorn main:app

tea-eggs's People

Contributors

wanbiguizhao avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

gui32423dg

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.