摘要: 命令行修改密码:token在/etc/keystone/keystone.conf中的一个admin_tokenexport OS_SERVICE_TOKEN=165a1766c12a497b8fbb18867c212aaaexport OS_SERVICE_ENDPOINT=http://loca 阅读全文
posted @ 2019-05-13 14:00 kissrule 阅读(1220) 评论(0) 推荐(0) 编辑
摘要: 配置源仓库 zypper通过软件源进行软件包的搜索,如果安装系统时使用CDROM进行操作,那么软件源会指向一个"cd://"的地址。 这样便无法从网上下载软件。 通过zypper repos --details查看源配置: 下一步是找到可用的源,需要与版本相近,因此先确定opensuse的版本,如当 阅读全文
posted @ 2019-05-06 17:49 kissrule 阅读(754) 评论(0) 推荐(0) 编辑
摘要: https://docs.openstack.org/kolla-ansible/latest/user/quickstart.html 阅读全文
posted @ 2019-05-06 16:47 kissrule 阅读(252) 评论(0) 推荐(0) 编辑
摘要: The requiretty option in sudoers file The requiretty if set in sudo config file sudoers, sudo will only run when the user is logged in to a real tty. 阅读全文
posted @ 2019-04-30 11:39 kissrule 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 在linux系统上有时发现使用df 查看磁盘已使用空间和使用du统计的不相等,例如: [running]root@slave11:/$ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 9.9G 4.0G 5.4G 43% / /d 阅读全文
posted @ 2019-04-25 14:07 kissrule 阅读(5237) 评论(0) 推荐(1) 编辑
摘要: ➜ ~ pythonPython 2.7.5 (default, Oct 30 2018, 23:45:53) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux2Type "help", "copyright", "credits" or "licen 阅读全文
posted @ 2019-04-25 11:44 kissrule 阅读(298) 评论(0) 推荐(0) 编辑
摘要: We may drop the file system caches on Linux to free up memory for applications. Kernels 2.6.16 and newer provide a mechanism via the /proc/ to make th 阅读全文
posted @ 2019-04-25 11:38 kissrule 阅读(282) 评论(0) 推荐(0) 编辑
摘要: a) Create Volume cinder create 1 --display-name admin-volume1 cinder create --display-name VOLNAME SIZE(SIZE的单位为GB)b) Delete Volume cinder delete volu 阅读全文
posted @ 2019-04-24 17:43 kissrule 阅读(891) 评论(0) 推荐(0) 编辑
摘要: 把下面内容放到.bashrc中,或者直接执行也行。 export OS_USERNAME=adminexport OS_PASSWORD=admin #根据实际密码来设 export OS_PROJECT_NAME=adminexport OS_AUTH_URL=http://localhost:3 阅读全文
posted @ 2019-04-24 17:15 kissrule 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 本文目的在于分析Linux内存管理机制的slab分配器。内核版本为2.6.31。1. SLAB分配器内核需要经常分配内存,我们在内核中最常用的分配内存的方式就是kmalloc了。前面讲过的伙伴系统只支持按页分配内存,但这个单位太大了,有时候我们并不需要这么大的内存,比如我想申请128字节的空间,如果 阅读全文
posted @ 2019-04-22 12:12 kissrule 阅读(1883) 评论(0) 推荐(1) 编辑