![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
逝水飞天
这个作者很懒,什么都没留下…
展开
-
linux离线安装安装docker
docker包下载地址https://download.docker.com/linux根据服务器的操作系统选择队对应的安装包以centos7操作系统为例#下载docker的rpm安装包及依赖包wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.4.9-3.1.el7.x86_64.rpmwget https://download.docker.com/linux/cen原创 2021-10-09 17:14:30 · 226 阅读 · 0 评论 -
初始化一个可用的docker ubuntu系统镜像
//创建容器docker run -itd --name=test ubuntu:20.04 /bin/bash//进入容器testdocker exec -it test bash//更新软件列表(update)和更新软件(upgrade)apt-get updateapt-get upgrade//安装必备软件apt-get install vim net-tools iputils-ping telnet lsof wget systemd gcc automake autoc原创 2021-10-09 15:01:39 · 428 阅读 · 0 评论 -
linux离线安装postgresql
一、下载和解压wget https://ftp.postgresql.org/pub/source/v10.18/postgresql-10.18.tar.gztar -zxf postgresql-10.18.tar.gz二、编译/usr/local/pgsql为安装路径,可自选cd postgresql-10.18./configure --prefix=/usr/local/pgsqlmakemake installecho “PG_LIBRARY_PATH=/usr/loca原创 2021-10-09 14:52:27 · 1977 阅读 · 0 评论 -
将本机运行的操作系统作为docker基础镜像
/*此命令将本机运行的操作系统打成一个.tar包可以使用--exclude参数将不需要的目录进行排除,可排除多个目录。文件打包支持的类型只有.tar, .tar.gz, .tgz, .bzip, .tar.xz等几种格式。打包完成后放在/usr目录下。*/tar --exclude=/usr/lib32 --exclude=/sys -cPvf system-base.tar /usr//将制作的tar包使用docker import镜像导入,并命令为:system-base:cat sy原创 2021-10-09 14:24:59 · 774 阅读 · 0 评论 -
为Ubuntu安装中文语言包
现有的中文语言包:language-pack-zh-hans 简体中文language-pack-zh-hans-baselanguage-pack-zh-hant 繁体中文language-pack-zh-hant-base安装中文语言包apt-get install language-pack-zh-han*修改配置文件echo "LANG=\"语言_所在地.字符集\"LANG=\"zh_CN.UTF-8\"LANGUAGE=\"zh_CN:zh\"LC_NUMERIC=\"原创 2021-10-08 17:07:12 · 4768 阅读 · 2 评论 -
ubuntu中source : not found 原因及解决办法
ubuntu中source ~/.bash_profile时提示 source: not found ls -l `which sh` 提示/bin/sh -> dash这说明是用dash来进行解析的。修改方法:使用root账户执行以下命令: dpkg-reconfigure dash 执行过程中的选项选择noUse dash as the default system shell (/bin/sh)? [yes/no] no再次执行命令ls -l `which sh` 提原创 2021-10-08 16:18:37 · 1782 阅读 · 0 评论