摘要: 新建用户 create user 'username'@'%' identified by 'password'; • user_name:要创建用户的名字。 • host:表示要这个新创建的用户允许从哪台机登陆,如果只允许从本机登陆,则 填 ‘localhost’ ,如果允许从远程登陆,则填 ‘% 阅读全文
posted @ 2021-09-26 15:56 小白丶瑶 阅读(861) 评论(0) 推荐(0) 编辑
摘要: 安装ssh服务器 sudo apt-get install openssh-server 安装ssh客户端 sudo apt-get install openssh-client 配置ssh客户端,去掉PasswordAuthentication yes前面的#号,保存退出 sudo vi /etc 阅读全文
posted @ 2021-09-26 15:52 小白丶瑶 阅读(184) 评论(0) 推荐(0) 编辑
摘要: ​ 我们首先需要在vm虚拟机上进行磁盘的扩展: 打开我的计算机Ubuntu,打开终端,输入sudo apt-get install gparted安装gparted,然后sudo gparted运行,结果如下: 发现我们的为19G,交换分区大概1G,这就是我们之前的20G,在我们在vm为该Ubunt 阅读全文
posted @ 2021-07-10 19:39 小白丶瑶 阅读(170) 评论(0) 推荐(0) 编辑
摘要: Ubuntu安装谷歌浏览器 1.wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb 然后再输入: 2.sudo dpkg -i google-chrome;* # 必须在wget的目录下执行 当 阅读全文
posted @ 2021-07-10 18:36 小白丶瑶 阅读(377) 评论(0) 推荐(0) 编辑
摘要: ​ ubuntu安装nginx 目前支持两种安装方式,一种是apt-get的方式,另一种是根据包安装的方式 为方便我统一使用root用户 一、apt-get安装nginx(推荐安装) 切换至root用户 sudo su root apt-get install nginx 查看nginx是否安装成功 阅读全文
posted @ 2021-07-10 14:10 小白丶瑶 阅读(2345) 评论(0) 推荐(0) 编辑
摘要: ​ 1.导出和加载tar 1.1 save和load命令 save命令 docker save [options] images [images...] 示例 : docker save -o nginx.tar nginx:latest 或 docker save > nginx.tar ngin 阅读全文
posted @ 2021-07-10 13:50 小白丶瑶 阅读(14353) 评论(0) 推荐(0) 编辑