![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
白额卷尾猴
这个作者很懒,什么都没留下…
展开
-
构建具有SSH功能的RockyLinux镜像
具有SSH 功能的Rocky Linux镜像的构建原创 2022-05-08 00:04:56 · 749 阅读 · 0 评论 -
给Docker中的CentOS添加ll命令
给Docker中的CentOS添加ll命令在Docker下的CentOS很多没有ll命令,其实可以到/root/.bashrc文件中添加下面一行命令:alias ll='ls $LS_OPTIONS -l'然后执行一下source /root/.bashrc 就可以了。其实可以再添加一行export LS_OPTIONS='--color=auto'让命令行自动着色。...原创 2021-11-02 15:45:45 · 1025 阅读 · 0 评论 -
将MariaDB镜像默认编码设为utf8mb4
在CentOS系统下数据库为MariaDB,数据库的默认编码方式不能满足需求,我们需把编码方式设为utf-8mb4, 修改方式有两种:数据库配置文件设置 数据库参数设置下面以数据库配置文件的设置为例说明MariaDB默认编码方式的设置,这种方式即灵活,也能彻底修改数据库的编码方式。1、 创建my.cnf配置文件:[client-server]# Port or socket location where to connectport = 3306socket = /run/mysql原创 2021-08-08 08:38:01 · 833 阅读 · 0 评论 -
运用dockerfile生成ssh镜像,克服反应慢的问题
自己生成docker镜像,能够满足自己的特殊需求,下面是根据官方的centos7镜像生成ssh镜像的dockerfile:FROM centos:centos7MAINTAINER This is centos:ssh#安装ssh和其他服务软件包#RUN yum update && yum install -y openssh* net-tools lsof telnet passwdRUN yum install -y openssh* net-tools lsof te原创 2021-07-27 16:50:48 · 209 阅读 · 0 评论