![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ubuntu
文章平均质量分 55
温暖的兮忆
倾听,学习,修行
展开
-
k8s的安装使用
ubuntu20一、dokcer官方手册1.1 卸载旧版本安装过程中可能需要卸载旧版本:sudo apt-get remove docker docker-engine docker.io containerd runc1.2 安装安装依赖sudo apt-get updatesudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg \ lsb-relea原创 2021-05-27 18:46:59 · 312 阅读 · 0 评论 -
python笔记
1.闭包:一个函数套用一个函数,内函数里运用了外函数的临时变量,并且外函数的返回值是内函数的引用一般情况下,如果一个函数结束,函数的内部所有东西都会释放掉,还给内存,局部变量都会消失。但是闭包是一种特殊情况,如果外函数在结束的时候发现有自己的临时变量将来会在内部函数中用到,就把这个临时变量绑定给了内部函数,然后自己再结束def line_6(k, b): def create_y...原创 2019-11-23 13:36:51 · 328 阅读 · 0 评论 -
ubuntu18忘记root密码或者进入root超级管理原权限
1.重启系统2.按esc或其他按键,进入“高级设置",3.然后进入(recovery mode)并回车,4.选择root那个选项,回车,然后再enter5.passwd root #修改密码6.如果失败出现:Autentication token manipulation error在shell输入以下命令 : mount -o rw,remount /7.重新输入...原创 2019-11-25 20:43:20 · 266 阅读 · 0 评论 -
ubuntu18安装keepalived和lvs
1.keepalived安装安装依赖包sudo apt-get install libssl-dev openssl libpopt-dev安装keepalivedsudo apt-get install keepalived配置配置文件/etc/keepalived/keepalived.confglobal_defs { router_id web...原创 2019-07-27 13:06:54 · 1410 阅读 · 0 评论 -
docker常用命令
1.docker配置镜像加速器root@backer:~# vi /etc/docker/daemon.json{ "registry-mirrors":["https://docker.mirrors.ustc.edu.cn","https://hub-mirror.c.163.com"]}2.docker重启service docker restart...原创 2019-08-03 14:05:54 · 124 阅读 · 0 评论 -
ubuntu18安装k8s
参考文档:https://my.oschina.net/u/2306127/blog/19225421.安装docker参考:https://docs.docker.com/install/linux/docker-ce/ubuntu/1)直接上重要命令sudo apt-get updatesudo apt-get install \ apt-transport-ht...原创 2019-07-30 20:51:57 · 844 阅读 · 0 评论 -
root 用户用CRT链接失败问题
在securecrt远程工具中,使用roto登陆的时候,出现了Theserverhasdisconnectedwithanerror.Servermessagereads:Aprotocolerroroccurred.Changeofusernameorservicenotallowed:(shang1,ssh-connection)->...转载 2019-08-03 10:27:57 · 822 阅读 · 2 评论 -
SSL证书生成
转载一篇文章http://www.baidu.com/link?url=c9IGU9YLG_0-OXcdZwxFj1tvjyAJROINqIj7WzweHxE9TBkF5MGKI4u15JWWM3K_xoHw4CGJNMqXvr4T4exUa369QH0juIkxfXghrEVELES&wd=&eqid=be0576a80002b239000000035b992fcb...原创 2021-09-07 11:37:12 · 348 阅读 · 0 评论 -
linux/ubuntu bug锦集(一)
一、liunx下安装软件报错requiers compiler and library support for iso&nrequiers compiler and library support for iso c 2011 standarerror: this support must be enabled with the -std=c 11 or -st解决方案:...原创 2018-06-23 20:44:26 · 688 阅读 · 0 评论 -
windows10 系统安装ubuntu双系统
1.https://jingyan.baidu.com/article/4d58d5411380dd9dd5e9c07e.html按步骤走2.错误1.uefi启动可能不行,需要改为legacy硬盘模式,https://jingyan.baidu.com/article/b907e627b1a5bb46e7891c0f.html3.可能在ubuntu其他分区的时候,不行,分区后剩下的空间不可用,可以...原创 2018-06-23 20:39:28 · 204 阅读 · 0 评论 -
ubuntu常用命令
1.whereis 软件名 ---------查看软件的位置2.lsof -i:端口 ----------查看某个端口3.kill -9 PID号 ---------- 关闭端口4. su passwd ---------Ubuntu初始化root密码5.su root ---------Ubuntu以root用户登录6.ps -e | grep python------...原创 2018-06-23 11:39:35 · 119 阅读 · 0 评论 -
Ubuntu14系统tomcat8.5开机自启设置及开机启动脚本编写
1.java环境变量配置建议在/etc/profile文件中添加环境变量,然后source /etc//profile,如果以root用户登录在/root/.bashrc中修改,则只能在root用户下使用javajava环境变量export JAVA_HOME=/usr/local/java/jdk1.8.0_171export JRE_HOME=${JAVA_HOME}/jreexport CL...原创 2018-06-23 10:57:55 · 786 阅读 · 0 评论