docker pull nginx:latest docker run -d -p 2002:80 --name abcnginx nginx:latest docker exec -ti abcnginx /bin/bash 然后更新下 apt-get update apt-get install ...
分类:
Web程序 时间:
2021-05-24 00:17:39
阅读次数:
0
StorageClass 简单学习 学习资料来源 https://www.jianshu.com/p/5e565a8049fc https://zhuanlan.zhihu.com/p/289501984 https://blog.csdn.net/ag1942/article/details/11 ...
分类:
其他好文 时间:
2021-05-24 00:07:25
阅读次数:
0
1.ls命令 红色:表示hello.sh这个文件的所有者是root 绿色:表示hello.sh这个文件的所属组是root组。 分所有者和所有组是为了分配权限,rwxr-xr-x,中rwx的权限分配给所有者,即hello.sh这个文件,所有者root有读r,写w,执行x的权限,所属组root的权限是r ...
分类:
系统相关 时间:
2021-05-23 23:26:47
阅读次数:
0
一、xshell中新建连接,在该窗口添加公网IP,如图: 二、点击用户身份验证,用户名默认为root,密码为阿里云服务器的实例密码,输入完点击连接即可。 三、不知道实例密码在哪里?登录阿里云控制台--选中云服务器ESC--选中服务器--点击重置实例密码即可。 ...
分类:
系统相关 时间:
2021-05-23 23:00:50
阅读次数:
0
1.什么是shell 命令解释器,将abcd翻译成010101发给内核,让机器看懂,内核处理后,返回101010,shell反编译成dcba呈现给终端,让人看懂。 2.shell分类 shell类别 易学性 可移植性 编辑性 快捷性 Bourne Shell -- sh 容易 好 较差 较差 Kor ...
分类:
系统相关 时间:
2021-05-04 16:31:26
阅读次数:
0
问题描述 问题输入是一对整数对,每个整数都代表一个对象,一对整数”p,q“表示 ”p与q相连“(具有自反性,传递性,对称性,被归到一个等价类里),要求编写程序来筛除在输入时就已经在一个等价类里的整数对。这个算法可以在计算机网络连结方面发挥作用:每个整数相当于计算机,整数对相当于网络间的连结,我们的程 ...
分类:
编程语言 时间:
2021-05-04 16:25:28
阅读次数:
0
安装镜像:docker pull 镜像名称 查看所有运行容器:docker ps -a 运行容器:docker run --name 容器名称 进入指定容器:docker exec -it 容器名称 bash 重启容器:docker restart 容器名称 停止所有容器:docker stop $ ...
分类:
其他好文 时间:
2021-05-04 15:53:31
阅读次数:
0
const http=require('http') const fs=require('fs') const path=require('path') const server=http.createServer(function(req,res){ const {url}=req console ...
分类:
Web程序 时间:
2021-05-04 15:44:00
阅读次数:
0
#!/bin/bash while read linedo echo $line txt=`echo $line |awk -F' ' '{print $1}'` id=`echo $line|awk -F' ' '{print $3}'` echo $txt echo $id sed "s/ws2 ...
分类:
系统相关 时间:
2021-05-03 12:39:24
阅读次数:
0
govendor简介 golang工程的依赖包经常使用go get命令来获取,例如:go get github.com/kardianos/govendor ,会将依赖包下载到GOPATH的路径下。 常用的依赖包管理工具有godep,govendor等,在Golang1.5之后,Go提供了 GO15 ...
分类:
其他好文 时间:
2021-05-03 12:03:26
阅读次数:
0