分类 默认分类 下的文章

https://github.com/AdguardTeam/AdGuardHome
DNS Docker 安装

mkdir -p /data/dnsserve
docker run --name dns-server\
    --restart unless-stopped\
    -v /data/dnsserver/work:/opt/adguardhome/work\
    -v /data/dnsserver/conf:/opt/adguardhome/conf\
    -p 53:53/tcp -p 53:53/udp\
    -p 8081:80/tcp -p 3000:3000/tcp\
    -p 853:853/tcp\
    --network mynetwork\
    -d adguard/adguardhome

1、配置外部工具,需要提前下载Nuget

工具->外部工具 添加外部工具
944369-20220208140449126-866081984.png

命令设置为:cmd.exe
参数设置为:
/c del $(ProjectDir)\bin\Release\*.nupkg /Q && dotnet pack -c Release $(ProjectDir) && NuGet push $(ProjectDir)\bin\Release\*.nupkg -Source https://n.circleit.cn/repository/nuget-hosted/ -ApiKey {xxxxkey} -NonInteractive

2、菜单配置

工具->自定义->命令,选择上下文菜单,右侧下拉列表选择项目和解决方案上下文菜单 | 项目 然后点击添加
2.png
3.png
4.png

Nexus配置

1.png
自定义命令按实际定义的顺序选择

mkdir /data/nexus && chown -R 200 /data/nexus
docker stop nexus3 && docker rm nexus3
docker run -d -p 8081:8081 --name nexus3 \
    -v /etc/localtime:/etc/localtime:ro \
    -e TZ=Asia/Shanghai \
    -h nexus_server \
    --dns=114.114.114.114 \
    -v /data/nexus:/nexus-data \
    --network mynetwork \
    sonatype/nexus3

nuget 推送或删除

在nexus中点击用户名,获取ApiKey

nuget push XScrum.Admin.Entry.1.0.1.nupkg  -source https://n.circleit.cn/repository/nuget-hosted/ -ApiKey xxxx -NonInteractive

nuget delete XScrum.Admin.Entry 1.0.1 -source https://n.circleit.cn/repository/nuget-hosted/ -ApiKey xxx -NonInteractive 

1、命令安装

sudo apt install iproute2

2、端口查看

sudo ss -tulpn

参数介绍:
-t, –tcp:查看所有 TCP 套接字
-u, –udp:查看所有 UDP 套接字
-l, –listening:查看所有监听套接字
-p, processes:查看哪些进程正在使用套接字
-n, –numeric:如果您想查看端口号而不是服务名称,请使用此选项

https://www.niuqi360.com/linux/how-to-check-for-open-ports-on-debian-10/