上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 42 下一页

2019年7月29日

Python执行Linux cmd命令,获取输出的一种方法,输出是bytes

摘要: import subprocess p = subprocess.Popen('df -lh', stdout=subprocess.PIPE, shell=True) print(p.stdout.read()) 阅读全文

posted @ 2019-07-29 10:42 liujx2019 阅读(836) 评论(0) 推荐(0) 编辑

2019年7月26日

Openstack Swift 如何查找 slave node 挂载的 VD 的 IP

摘要: 1. 在 /etc/swift/container-server.conf 或者 object-server.conf 中的 devices= 一行 可以找到 /srv/node. 在 /srv/node/ 下可发现设备, 如 sdb. 即 /srv/node/sdb 2. 通过命令 cat /et 阅读全文

posted @ 2019-07-26 17:51 liujx2019 阅读(199) 评论(0) 推荐(0) 编辑

Linux 如何通过 iscsi target name 获取 ip

摘要: by Mike Andrews 阅读全文

posted @ 2019-07-26 17:10 liujx2019 阅读(564) 评论(0) 推荐(0) 编辑

Linux 字符串处理函数

摘要: 1 strchr函数原型:extern char *strchr(char *str,char character)参数说明:str为一个字符串的指针,character为一个待查找字符。 所在库名:#include <string.h> 函数功能:从字符串str中寻找字符character第一次出 阅读全文

posted @ 2019-07-26 09:40 liujx2019 阅读(2135) 评论(0) 推荐(0) 编辑

2019年7月24日

为何 UNIX 时间 0, 有时显示是1970年1月1日,有时显示是1969年12月31日

摘要: by Rachael Arnold http://www.rachaelarnold.com/dev/archive/why-is-date-returning-wrong Demystifying 12/31/1969 (or 1/1/1970 for Eastern Hemisphere fol 阅读全文

posted @ 2019-07-24 16:39 liujx2019 阅读(327) 评论(0) 推荐(0) 编辑

ubuntu 可以用 root 登录 ftp

摘要: 在 /etc/ftpusers 中注释掉 root 阅读全文

posted @ 2019-07-24 14:46 liujx2019 阅读(286) 评论(0) 推荐(0) 编辑

ifconfig

摘要: https://blog.csdn.net/u011857683/article/details/83758503 阅读全文

posted @ 2019-07-24 14:38 liujx2019 阅读(86) 评论(0) 推荐(0) 编辑

VirtualBox 原始镜像转换成 vdi 镜像

摘要: VBoxManage convertdd [-static] <filename> <outputfile> 将raw硬盘转换成vdi虚拟硬盘 阅读全文

posted @ 2019-07-24 13:57 liujx2019 阅读(713) 评论(0) 推荐(0) 编辑

以命令行界面启动 Ubuntu

摘要: 1. /etc/default/grub 将GRUB_CMDLINE_LINUX_DEFAULT一行中改为"quiet splash 3" 2. update-grub 3. 重启 阅读全文

posted @ 2019-07-24 10:35 liujx2019 阅读(610) 评论(0) 推荐(0) 编辑

Openstack Swift 创建用户和 container

摘要: openstack user create --domain default --password-prompt [用户名];openstack role add --project admin --user [用户名] admin;swift post [container 名]; 阅读全文

posted @ 2019-07-24 09:58 liujx2019 阅读(656) 评论(0) 推荐(0) 编辑

上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 42 下一页

导航