09 2020 档案

摘要:K8S 有很多 Volume 类型 awsElasticBlockStore azureDisk azureFile cephfs cinder configMap csi downwardAPI emptyDir fc (fibre channel) flexVolume flocker gceP 阅读全文
posted @ 2020-09-23 01:50 moon~light 阅读(411) 评论(0) 推荐(0) 编辑
摘要:system import os status = os.system("ls -l") os.system 创建子进程在系统上执行命令,只能获取命令的返回状态,命令的输出结果会直接打到 console 上 比如 status = os.system("ls -l") 如果执行成功 status 的 阅读全文
posted @ 2020-09-19 00:27 moon~light 阅读(600) 评论(0) 推荐(0) 编辑
摘要:java 命令加上以下参数 -XX:+TraceClassPaths ## 按顺序输出加载的 Jar 包 -verbose:class ## 按顺序输出加载的 class 和 Jar 阅读全文
posted @ 2020-09-19 00:04 moon~light 阅读(918) 评论(0) 推荐(0) 编辑
摘要:如果希望非 root 用户可以执行需要 root 权限的命令,可以将命令加入到 /etc/sudoers,然后通过 sudo cmd 执行 sudoers 内容的格式如下 授权用户/组 主机=[(切换到哪些用户或组)] [是否需要输入密码验证] 命令1, [(切换到哪些用户或组)] [是否需要输入密 阅读全文
posted @ 2020-09-18 23:56 moon~light 阅读(372) 评论(0) 推荐(0) 编辑
摘要:Ubuntu 的开机启动项都放在 /etc/init 下的 *.conf 文件 以 /etc/init/nginx.conf 为例子 description "nginx - small, powerful, scalable web/proxy server" start on filesyste 阅读全文
posted @ 2020-09-18 23:27 moon~light 阅读(1016) 评论(0) 推荐(0) 编辑
摘要:Dockerfile 中的 CMD 和 ENTRYPOINT 官网的描述 The CMD instruction has three forms: CMD ["executable","param1","param2"] (exec form, this is the preferred form) 阅读全文
posted @ 2020-09-17 21:47 moon~light 阅读(2647) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示