会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
巴州夜雨
不将就 有所为
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
16
17
18
19
20
21
22
23
24
···
31
下一页
2020年5月13日
ubuntu16.04换国内源
摘要: 1.备份/etc/apt目录下的源文件sources.list。 2.更换源地址为如下其中一个: 清华源: deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted deb http://mirrors.tuna.t
阅读全文
posted @ 2020-05-13 22:25 巴州夜雨
阅读(468)
评论(0)
推荐(0)
2020年5月12日
指定用户的家目录不在/home
摘要: 1. 添加新用户时,修改用户的默认家目录/home,将/etc/default/useradd文件中的HOME替换为目标目录即可(红色字体所示) $ cat /etc/default/useradd # Default values for useradd(8) # # The SHELL vari
阅读全文
posted @ 2020-05-12 15:58 巴州夜雨
阅读(1307)
评论(0)
推荐(0)
docker拷贝的里与外
摘要: $ docker container cp zhongjian_platform_java-api:/app/java_api/apigateway-ai-1.0.log . 把容器名zhongjian_platform_java-api里的文件/app/java_api/apigateway-ai
阅读全文
posted @ 2020-05-12 15:34 巴州夜雨
阅读(196)
评论(0)
推荐(0)
2020年5月8日
dd if扩展交换空间
摘要: 交换空间太小,使用dd的方式扩展2G空间。 ubuntu@ubuntu-42:/usr/local/tomcat$ free -h total used free shared buff/cache available Mem: 7.6G 6.0G 855M 13M 765M 1.3G Swap:
阅读全文
posted @ 2020-05-08 23:46 巴州夜雨
阅读(543)
评论(0)
推荐(0)
2020年5月7日
导入sql文件到mysql容器中
摘要: 导入sql文件到mysql容器中 1. 在docker-compose文件中增加挂载路径./sqlfile,将sql文件映射进容器。 volumes: - ./data/docker/mysql:/var/lib/mysql - ./mysql/:/docker-entrypoint-initdb.
阅读全文
posted @ 2020-05-07 23:44 巴州夜雨
阅读(711)
评论(0)
推荐(0)
封装jdk8到ubuntu:18.04
摘要: 需要在docker里跑Spring Boot框架,搭建个基于ubuntu:18.04的java环境。 1. 拉取镜像及下载jdk压缩包。$sudo docker pull ubuntu:18.04,到存储服务器上找了个java包jdk-8u141-linux-x64.tar.gz 2. 使用Dock
阅读全文
posted @ 2020-05-07 23:33 巴州夜雨
阅读(198)
评论(0)
推荐(0)
2020年4月30日
普通新用户的docker权限
摘要: 应上海开发需求,在人脸测试服务器上创建新用户,只赋予docker使用权限,步骤:$ sudo useradd -rms /bin/bash ouyangyao #创建用户ouyangyao$ sudo groupadd docker #添加docker用户组,可能已经存在, $ sudo userm
阅读全文
posted @ 2020-04-30 23:27 巴州夜雨
阅读(967)
评论(0)
推荐(0)
2020年4月27日
docker内的/dev/shm
摘要: docker内的/dev/shm,默认共享的是64M。 pm@TR:/data/factory$ sudo docker exec -it 6d401ddd44d2 bash root@6d401ddd44d2:/# df -h /dev/shm Filesystem Size Used Avail
阅读全文
posted @ 2020-04-27 21:26 巴州夜雨
阅读(3160)
评论(0)
推荐(0)
[W] [service.go:82] login to server failed: dial tcp:lookup xxxx.com on [::1]:53: read udp [::1]:33725->[::1]:53: read: connection refused
摘要: 启动frp客户端时报错: [centos@localhost frp_0.27.0_linux_amd64]$ sudo ./frpc -c frpc.ini 2020/04/17 16:30:52 [W] [service.go:82] login to server failed: dial t
阅读全文
posted @ 2020-04-27 21:16 巴州夜雨
阅读(8848)
评论(0)
推荐(0)
ubuntu@center-kitchen:/data/postsql-redis$ sudo docker exec -it 1676ca9b2eb9 psql -U postgres -d postgres psql: FATAL: role "postgres" does not exist
摘要: 使用docker-compose.yml创建postgresSQL,登录psql容器时提示缺少postgres角色: ubuntu@center-kitchen:/data/postsql-redis$ sudo docker exec -it 1676ca9b2eb9 psql -U postgr
阅读全文
posted @ 2020-04-27 21:02 巴州夜雨
阅读(297)
评论(0)
推荐(0)
上一页
1
···
16
17
18
19
20
21
22
23
24
···
31
下一页