Linux查看占用端口的进程或程序方法汇总
1 netstat 命令:netstat -ap | grep 5901
1 2 3 4 5 |
ubuntu@mcj:~$ netstat -ap | grep 5901 (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) tcp6 0 0 [::]:5901 [::]:* LISTEN 1971/Xvnc4 tcp6 0 0 172.25.17.208:5901 172.25.17.26:63111 ESTABLISHED 1971/Xvnc4 |
命令:netstat -tln | grep 5901 [crayon-68692a352d1f68 […]
client_loop: send disconnect: Broken pipe
通过跳板端口转发连接SSH时,可能会出现: client_loop: send disconnect: Broken pipe 这时由于当前连接的用户线程过多,例如root,此时更换个用户连接即可。 本文最后更新于2022年11月19日,已 […]
如何边看视频边记笔记?如何点击笔记跳转到对应的视频帧?
1 十行笔记 分享一个视频笔记学习神器『十行笔记』: https://videoai.perspectivar.com/toExchange/SHL73U9KM 支持视频和音频。 视频的话,可以自动生成文字和截图,点击截图就可以自动播放当前 […]
As an expert in the field, you are best placed to explain why your article is interesting or impactful to a wider audience.
今天收到一封邮件,内容是: Dear Author, We recognize you have a choice of where to submit your research and we thank you for choosing […]
Linux服务器修改当前时区
查询当前时区: date -Rdate -R 快速修改北京时区: timedatectl set-timezone Asia/Shanghai 修改为其他时区,使用tzselect命令: [crayon-68692a352dae074186 […]
macOS如何编辑Visio文件?
macOS下令人难以忍受的两个不支持的软件,一个是visio,之前每次画图都会打开虚拟机。另外一个是Mathtype,也是无法在macOS下正常使用。 关于Mathtype如何在macOS下使用的方法,之前已经写过,可以参考: 对于第一 […]
如何使用CDN加速FRP?
正常使用FRP的时候,server_addr大家应该都是填的IP吧,即使有用域名的,也只是直接解析到某个IP。 如果服务器在国内就还好,如果国外的话,进行远程控制的时候就会卡卡的。一般来说,可以直接套个CDN对VNC进行加速。 但是如果想对 […]
macOS下matplotlib如何显示中文字体?
一般要显示中文会使用: plt.rcParams[‘font.sans-serif’]=[‘SimHei’] #用来正常显示中文标签 plt.rcParams[‘axes.unicode_minus’]=False #用来正常显示负号 不过 […]
电脑登录京东触屏版显示身份验证失败
一般我们需要抓取cookie的时候,会登陆移动版的京东,但是最近不知道什么时候开始,电脑端登陆触屏版京东的时候会出现手指痕迹滑动的验证码,就像下面这样: 然后,不管你如何滑动,如何精准,都会提示失败。 一般碰到这种情况,可以选择多尝试几次, […]
conf – conf.c:mount_entry:2019 – No such device or address
lxc容器重启时出现问题,提示:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
Name: pang Remote: unix:// Architecture: x86_64 Created: 2022/11/02 06:47 UTC Status: Stopped Type: persistent Profiles: default Log: lxc pangyindong 20221105051756.396 ERROR conf - conf.c:mount_entry:2019 - No such device or address - Failed to mount "/var/lib/lxd/devices/pangyindong/unix.gpu0.dev-nvidia-caps" on "/usr/lib/x86_64-linux-gnu/lxc/dev/nvidia-caps" lxc pangyindong 20221105051756.396 ERROR conf - conf.c:lxc_setup:3611 - Failed to setup mount entries lxc pangyindong 20221105051756.396 ERROR start - start.c:do_start:1263 - Failed to setup container "pangyindong" lxc pangyindong 20221105051756.396 ERROR sync - sync.c:__sync_wait:62 - An error occurred in another process (expected sequence number 5) lxc pangyindong 20221105051756.396 WARN network - network.c:lxc_delete_network_priv:2589 - Operation not permitted - Failed to remove interface "eth0" with index 18 lxc pangyindong 20221105051756.396 ERROR lxccontainer - lxccontainer.c:wait_on_daemonized_start:842 - Received container state "ABORTING" instead of "RUNNING" lxc pangyindong 20221105051756.396 ERROR start - start.c:__lxc_start:1939 - Failed to spawn container "pangyindong" lxc 20221105051756.397 WARN commands - commands.c:lxc_cmd_rsp_recv:132 - Connection reset by peer - Failed to receive response for command "get_state" |
原因是容器启动时试图挂载unix.gpu0.dev-nvidia-caps,但是这个是无法挂载的,所以出错。 我们可以ls一下/dev/nv […]