Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux #12

Open
gobomb opened this issue Nov 1, 2019 · 8 comments
Open

linux #12

gobomb opened this issue Nov 1, 2019 · 8 comments

Comments

@gobomb
Copy link
Owner

gobomb commented Nov 1, 2019

CentOS 永久修改 /etc/resolv.conf里的 dns 配置:

vi /etc/sysconfig/network-scripts/ifcfg-ens192

修改 DNS1=10.10.11.59项,然后重启 network:

systemctl restart network

@gobomb
Copy link
Owner Author

gobomb commented Dec 9, 2019

ssh -p 1301 root@host -i /path/to/key

ssh 的时候报错:

Load key "/path/to/key": invalid format
root@host: Permission denied (publickey).

原因:key文件中的换行为windows格式,需要转换成unix格式:

brew install dos2unix

dos2unix /path/to/key

@gobomb
Copy link
Owner Author

gobomb commented Mar 4, 2020

(ubuntu)import root cert

mkdir /usr/share/ca-certificates/extra

cp foo.crt /usr/share/ca-certificates/extra/foo.crt

dpkg-reconfigure ca-certificates

choose yes

or

echo extra/foo.crt  >> /etc/ca-certificates.conf

update-ca-certificates

arch/manjaro

/usr/local/share/ca-certificates/*.crt 移动到 /etc/ca-certificates/trust-source/anchors/
/etc/ssl/certs/*.pem 进行上述操作,并将它们重命名为 *.crt

运行 trust extract-compat

https://www.archlinuxcn.org/ca-certificates-update/

@gobomb
Copy link
Owner Author

gobomb commented Mar 9, 2020

find /var/log/pods -name api -print

@gobomb
Copy link
Owner Author

gobomb commented Mar 9, 2020

mount -v -t nfs 10.23.253.221:/export/pvc-99686db6-5f5e-11ea-9841-005056a9526f /tmp/test

@gobomb
Copy link
Owner Author

gobomb commented Jun 22, 2020

@gobomb
Copy link
Owner Author

gobomb commented Mar 22, 2021

@gobomb
Copy link
Owner Author

gobomb commented Apr 1, 2021

wget -c -r -np -k -L -p www.xxx.com

-c 断点续传
-r 递归下载,下载指定网页某一目录下(包括子目录)的所有文件
-nd 递归下载时不创建一层一层的目录,把所有的文件下载到当前目录
-np 递归下载时不搜索上层目录,如wget -c -r www.xxx.org/pub/path/
没有加参数-np,就会同时下载path的上一级目录pub下的其它文件
-k 将绝对链接转为相对链接,下载整个站点后脱机浏览网页,最好加上这个参数
-L 递归时不进入其它主机,如wget -c -r www.xxx.org/

@gobomb
Copy link
Owner Author

gobomb commented Apr 13, 2021

在终端中输入制表符:ctrl+v 再打 tab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant