1、下载(安装包1)及安装:最后加了XFCE桌面、SSH Servier两项
2、登陆root帐号,修改etc/apt/source.list文件(参考https://www.cnblogs.com/beanmoon/p/3387652.html),路径修改为:http://mirrors.163.com/debian/,更新文件:sudo apt-get update ; sudo apt-get dist-upgrade 全面更新 设置path: echo $PATH export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
3、配置远程桌面:安装:apt-get install xrdp tigervnc-standalone-server 启动:systemctl start xrdp systemctl enable xrdp 配置:dpkg-reconfigure xserver-xorg-legacy 任何用户;空白原因:超出登陆个数(查看错误日志)
4、配置docker:su 切换root帐号 https://www.runoob.com/docker/debian-docker-install.html
阿里云docker:https://www.zhangshengrong.com/p/boNwrxymaw/
5、部署.net Core程序:https://www.cnblogs.com/xtjatswc/p/10286755.html
常用docker命令:
创建镜像:docker pull microsoft/dotnet
或者:创建Dockerfile
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 COPY app/bin/Release/netcoreapp3.1/publish/ app/ ENTRYPOINT ["dotnet", "app/myapp.dll"]
:docker build -t myimage -f Dockerfile . https://docs.microsoft.com/zh-cn/dotnet/core/docker/build-container
创建容器:docker create --name mycore myimage
启动容器:docker start mycore
....
6、