- 博客(9)
- 资源 (9)
- 问答 (4)
- 收藏
- 关注
原创 MongoDB: ERROR: child process failed, exited with error number
参考:SO: MongoDB: ERROR: child process failed, exited with error numberCheck if the mongod is running with pgrep mongod or ps -aef | grep mongod or systemctl status mongodStop and restart it to check if the issue goneif you start mongod with mongod -f /et
2020-07-30 14:42:15 810
原创 SSH passwordless login(免密登陆)
linux,windows 都一样。下面以windows为例:生成密钥对$ ssh-keygenGenerating public/private rsa key pair.Enter file in which to save the key (/c/Users/user/.ssh/id_rsa): ./id_rsa_ss1Enter passphrase (empty for no passphrase):Enter same passphrase again:Your identifi
2020-07-24 17:03:42 4812
原创 Why is this rsync connection unexpectedly closed on Windows?
参考:SO: Why is this rsync connection unexpectedly closed on Windows?rsync.exe -avz -e 'ssh -p 22' [email protected]:/home/user/[email protected]'s password:rsync: connection unexpectedly closed (0 bytes received so far) [sender]rsync error: error
2020-07-24 14:34:02 2934
原创 nginx: [emerg] “proxy_pass“ cannot have URI part in location given by regular expression, or inside
参考SO: nginx ‘proxy_pass’ cannot have URI part in location?使用下面的配置会出现上面的问题location ~ ^/web/(project1|project2|project3)/$ { proxy_pass https://example.com/h5/;}原因:nginx cannot process your desired URI part in the proxy_pass directivebecause you’re
2020-07-24 09:49:56 13141 3
原创 nginx 路径替换
下面使用一个简单的例子来说明路径替换,配置了两个路径指向同一个项目。location ^~ /internal/project/ {allow 127.0.0.1;allow 172.16.0.0/16;allow 172.17.93.0/24;deny all;proxy_pass https://example.com/external/project/;}location ~ /external/ {root /var/www/html;index index.html;}Pr
2020-07-24 09:40:17 5986
原创 auditd Unregistered Authentication Agent for unix-process
sudo systemctl restart auditd> Failed to restart auditd.service: Operation refused, unit> auditd.service may be requested by dependency only (it is configured> to refuse manual start/stop). See system logs and 'systemctl status> auditd.ser
2020-07-08 20:56:18 47528 1
原创 pam_succeed_if(sshd:auth): requirement “uid 」= 1000“ not met by user “root“
有下面两种情形:cat /etc/shadow | grep root 查看root用户是否被锁定。如果出现 root:!!$6$CG (注意其中的!!)则说明root用户被锁定,不能登陆。解决方案:passwd -u root 解除用户锁定。查看PAM配置文件/etc/pam.d/login, /etc/pam.d/sshd /etc/pam.d/system-auth中是否有 auth required pam_succeed_if.so uid >= 1000;修改或者注释该
2020-07-07 15:34:13 18523
原创 Centos setting password for user, but still can‘t log in on it
Refer to : Centos setting password for user, but still can’t log in on itUse another to check the log by with sudo tail -f /var/log/secureIt shows something like this,Jul 4 16:24:06 iz2ze86eplnjdk8exdjimjz sshd[17288]: pam_tally2(sshd:auth): user lv (1
2020-07-07 15:19:54 273
原创 Error response from daemon: OCI runtime create failed
Refer to StackOverflow:docker: Error response from daemon: OCI runtime create failed: unable to retrieve OCI runtime errorTo check the issue by run docker in the debug mode.1: stop docker with systemctl stop docker2: run docker in debug mode dockerd -
2020-07-07 15:18:23 7524
TA创建的收藏夹 TA关注的收藏夹
TA关注的人