
Linux
文章平均质量分 78
fareast_mzh
A glitch in the Matrix
展开
-
libcurl error codes
libcurl error codesNamelibcurl-errors - error codes in libcurlDescriptionThis man page includes most, if not all, available error codes in libcurl. Why they occur and possibly what you can do to fix the problem are also included.CurlcodeAlmos转载 2021-10-26 17:28:10 · 995 阅读 · 0 评论 -
Linux C语言 取得MTU (最大传输单元)
参照这篇博客: http://www.geekpage.jp/programming/linux-network/book/04/4-21.php* 查看主机当前网卡,哪块在使用.ifconfig lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 options=3<RXCSUM...原创 2018-07-20 14:54:00 · 2233 阅读 · 1 评论 -
CentOS sudo 把用户添加到sudoer
CentOS 把用户添加到sudoer$ su -# chmod u+w /etc/sudoers# vim /etc/sudoers仿照这一行root ALL=(ALL) ALL在这一行后面添加我的用户名 ALL=(ALL) ALL# chmod u-w /etc/sudoers# logout$ sudo yum install emacsnginx ...原创 2018-08-21 15:20:31 · 3527 阅读 · 0 评论 -
linux ssh 免密码登录设置
* 把远程主机的自定义主机名aliyun添加到/etc/hosts### Host Database## localhost is used to configure the loopback interface# when the system is booting. Do not change this entry.##127.0.0.1 localhost255.255...原创 2018-08-25 11:35:30 · 653 阅读 · 0 评论 -
linux 挂载window共享的目录 | 解压命令 .gz .bz2 .tar.gz
net share doc=D:\mount\mntumount /home/ubuntu/easyeyemount -t cifs //192.168.4.157/easyeye /home/ubuntu/easyeye -o username=mingzhanghui,password=xxxx,vers=2.0,rw,uid=1000,gid=1000,dir_mode=07...转载 2018-11-13 09:12:39 · 455 阅读 · 0 评论 -
ubuntu sudo apt-get install xxxx E: The package lists or status file could not be parsed or opened.
Issue:~$ sudo apt-get install dockerReading package lists... Error!E: Unable to determine file size for fd 7 - fstat (2: No such file or directory)E: Problem opening /var/lib/apt/lists/security.u...原创 2019-02-27 09:52:29 · 1642 阅读 · 0 评论 -
make: warning: Clock skew detected. Your build may be incomplete.
$ git clonehttps://github.com/git/git$ cd git$ make configureGIT_VERSION = 2.21.0.313.ge35b8cb.dirtymake: Warning: File `GIT-VERSION-FILE' has modification time 1.2 s in the future GEN c...原创 2019-04-11 09:46:44 · 438 阅读 · 0 评论 -
ubuntu 把用户添加到sudo
usermod -a -G sudo 用户名useradd mzhpasswd mzhsudo su -mzh is not in the sudoers file. This incident will be reported.ssh root@198.13.46.64usermod -a -G sudo mzhlogoutssh mzh@198.1...原创 2019-04-13 11:50:18 · 2610 阅读 · 0 评论 -
supervisor 安装
brew install supervisor==> Downloading https://homebrew.bintray.com/bottles/supervisor-3.3.4.mojave.bottle.tar.gz######################################################################## 100.0%...原创 2019-08-10 16:51:54 · 237 阅读 · 0 评论