Django Swagger接口文档生成 and Windows10 上安装cicd环境 and SSH自启动设置

Django Swagger接口文档生成

https://www.cnblogs.com/xiao987334176/p/13255273.html

drf-yasg

https://pypi.org/project/drf-yasg/

Windows10 上Docker 安装运行Gitlab

https://www.cnblogs.com/taylorshi/p/13585821.html

windows11 安装windows Terminal

使用Microsoft store安装

docker导入导出容器和保存加载镜像

https://blog.51cto.com/u_13941177/2286878

新建用户没有操作docker deeptop的权限

net localgroup docker-users DOMAIN\username /add

Win10系统上搭建GIT本地服务器

https://www.jianshu.com/p/7a7ef8b0868b
windows下如何搭建属于自己的git服务器?
https://zhuanlan.zhihu.com/p/79370923

Windows系统搭建jenkins

https://blog.csdn.net/weixin_43969815/article/details/92001045

windows10 的Microsoft store安装教程

get-appxpackage *store* | remove-Appxpackage
add-appxpackage -register "C:\Program Files\WindowsApps\*Store*\AppxManifest.xml" -disabledevelopmentmode

docker部署ubuntu

docker run -it -d -p 8022:22 -p 8080:80 -v E:\ubuntu:/opt/ubuntu --restart=always library/ubuntu
#安装openssh-server
apt update
apt install openssh-server
/etc/init.d/ssh start
apt install vim
#通过SSH配置文件更改包括端口、是否允许root登录等设置,配置文件位置:
 /etc/ssh/sshd_config
 #默认是不允许root远程登录的,可以再配置文件开启。
 sudo vi /etc/ssh/sshd_config
 #找到PermitRootLogin without-password 修改为PermitRootLogin yes

passwd root
/etc/init.d/ssh restart

Ubuntu18 没有/etc/rc.local文件 SSH自启动设置 WSL中和单独ubuntu系统中
https://blog.csdn.net/qq_33963083/article/details/105111004
首先创建systemd的服务脚本
1、sudo vi /etc/systemd/system/rc-local.service

[Unit]
 Description=/etc/rc.local Compatibility
 ConditionPathExists=/etc/rc.local
 
[Service]
 Type=forking
 ExecStart=/etc/rc.local start
 TimeoutSec=0
 StandardOutput=tty
 RemainAfterExit=yes
 SysVStartPriority=99
#sysVstart这行可以删掉,我看启动日志中貌似报忽略这个了。。
 
[Install]
 WantedBy=multi-user.target

sudo systemctl enable rc-local.service
然后就按以前的格式编辑/etc/rc.local就好了。
最后记得chmod +x /etc/rc.local

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值