还不了解什么是Dockerfile的小伙伴可以查看我之前的博客:https://blog.51cto.com/14557905/2489466Dockerfile镜像制作实战Dockerfile制作镜像的三个步骤一、制作sshd镜像1.编写Dockerfile文件[root@dockersshd]#vimDockerfile#基础镜像FROMcentos:7#用户信息MAINTAINERthisi
分类:
其他好文 时间:
2020-04-24 14:45:31
阅读次数:
82
想要提升你的代码质量,那必不可少的变量名的合理选择,系统整理归纳知识清单,快速梳理掌握诀窍,变量名的正确的形式! ...
分类:
其他好文 时间:
2020-04-23 00:56:49
阅读次数:
69
for for循环有两种形式: for-in语句 基本格式如下: for var in list do commands done list代表要循环的值,在每次循环的时候,会把当前的值赋值给var(变量名而已,随意定), 这样在循环体中就可以直接通过$var获取当前值了。 #!/bin/bash ...
分类:
系统相关 时间:
2020-04-22 22:57:08
阅读次数:
80
前言:因数据磁盘不足需要进行扩展分区,但是因为没有逻辑分区使用LVM会很复杂Warning:扩容需要卸载数据盘,但不会影响数据(如果重要或者怕丢失的话请先备份)思路:1.卸载数据盘2.fdisk扩容3.修复磁盘4.挂载磁盘5.扩容磁盘以下是xfs磁盘扩容(1)卸载数据盘[root@localhost~]#umount/dev/vdc1(2)fdisk扩容[root@door_application
分类:
其他好文 时间:
2020-04-21 16:49:05
阅读次数:
64
1、添加用户tom100 #!/bin/bash while read LINES do user=`echo $LINES |cut -d ' ' -f1` password=`echo $LINES |cut -d ' ' -f2` host=`echo $LINES |cut -d ' ' - ...
分类:
其他好文 时间:
2020-04-21 14:52:49
阅读次数:
79
So this is what I need to do before my traineeship ends. connect android app with the database from a website store some information into the database ...
分类:
移动开发 时间:
2020-04-21 12:44:23
阅读次数:
105
#!/bin/bash while true do res=`ps -ef | grep "ci.hrdsm.com/server1" | grep -v grep | wc -l` if [ $res -eq 0 ] then sh /export/server1/bin/start.sh ech ...
分类:
系统相关 时间:
2020-04-21 09:46:09
阅读次数:
71
本篇描述的是将磁盘扩容到/home目录下,对应的系统版本是centos版本 一、用root用户登录到你的linux系统,查看你系统的分区#fdisk -l 会出现以下的信息: Device Boot Start End Blocks Id System /dev/sda1 * 1 64 512000 ...
分类:
系统相关 时间:
2020-04-20 15:49:37
阅读次数:
107
1.安装nodejs 这个简单官网下载一个版本就ok了。 2.安装ruby ==注意下载带devkit的版本== 替换gem的镜像 3.WEBPACK的部署安装 4.在Ruby里安装jekyll ...
分类:
其他好文 时间:
2020-04-20 10:28:06
阅读次数:
78
多层级makefile 当项目变大之后,需要多层级的makefile来编译,每个makefile的具体功能实现参考 "自己写makefile" 。然后再在顶层目录写一个总控的makefile来实现编译逻辑就行。 总控makefile 各模块makefile ...
分类:
其他好文 时间:
2020-04-17 21:48:48
阅读次数:
70