我已经通过 apt-get 在 debian 7 上安装了 git,它给了我:
# git --version
git version 1.7.10.4
Run Code Online (Sandbox Code Playgroud)
我想升级到最新版本的 git。我试过了:
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git
Run Code Online (Sandbox Code Playgroud)
但这会产生以下错误:
Fetched 6,944 B in 0s (10.1 kB/s)
W: Failed to fetch http://ppa.launchpad.net/git-core/ppa/ubuntu/dists/wheezy/main/source/Sources 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/git-core/ppa/ubuntu/dists/wheezy/main/binary-amd64/Packages 404 Not Found
Run Code Online (Sandbox Code Playgroud)
我也尝试遵循本指南:
http://backports.debian.org/Instructions/
但我仍然无法获得最新的 git,有什么建议吗?
在我的家庭无线路由器的网络界面中,我可以看到以下信息:
对于公共 IPv4 地址,我看到:
https://myip.ms/info/whois/10.206.55.182
对于默认网关,我看到:
https://myip.ms/info/whois/10.206.48.1
两者均归IANA所有。这些 IP 地址是所有路由器的“默认”地址吗?
它们与我的公共(出站)IP 地址(我可以通过 icanhazip.com 获取)或默认网关/我的路由器 IP 地址(仅在本地可见)不同。
在 linux 上,我可以使用以下命令列出 DNS 表中以“80”结尾的所有条目:
dig axfr my.domain | grep 80
Run Code Online (Sandbox Code Playgroud)
我如何在 Windows 上使用 NSlookup 做到这一点?我试过启动 NSlookup 并输入
ls my.domain
Run Code Online (Sandbox Code Playgroud)
这给了我完整的清单。但是如何像在 linux 上使用 grep 一样过滤结果集?
我试过了:
C:\Users\user>nslookup -ls my.domain | find "80"
*** Invalid option: ls
Run Code Online (Sandbox Code Playgroud)
但它给出了上述错误。
在 ubuntu 18.04 上,我正在运行这个 ansible(版本 2.5.1)角色:
---
- name: Add Docker apt repository key.
apt_key:
url: "https://download.docker.com/linux/ubuntu/gpg"
state: present
- name: gather facts
setup:
- name: Set the stable docker repository
apt_repository:
repo: "deb [arch=amd64] https://download.docker.com/linux/ubuntu {{ ansible_lsb.codename }} stable"
state: present
update_cache: yes
- name: Install Docker
apt:
name: docker-ce
state: present
Run Code Online (Sandbox Code Playgroud)
有了这个剧本:
---
- hosts: localhost
connection: local
gather_facts: False
become: true
pre_tasks:
- name: Install python for Ansible
raw: test -e /usr/bin/python || (apt -y update && …Run Code Online (Sandbox Code Playgroud)