随笔分类 - linux中常用的小工具
摘要:1、获取随机字符串或数字 [root@k8s-node1 ~]# echo $RANDOM |md5sum |cut -c 1-8 09808fdd [root@k8s-node1 ~]# openssl rand -base64 4 ZEPKhA== [root@k8s-node1 ~]# cat
阅读全文
摘要:[root@k8s-master ~]# scp /etc/sysctl.d/k8s.conf root@192.168.30.23:/etc/sysctl.d/k8s.conf@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
阅读全文
摘要:[root@localhost ~]# iptables -F[root@localhost ~]# systemctl stop firewalld[root@localhost ~]# systemctl disable firewalld[root@localhost ~]# setenfor
阅读全文
摘要:1,关闭防火墙和selinuxiptables -Fsystemctl stop firewalldsystemctl disable firewalldsetenforce 0服务器系统 名字 IP地址 nfs-server 192.168.30.21 nfs-client1 192.168.30
阅读全文
摘要:这里需要有网。因为我们需要下载会用到wget [root@localhost ~]# iptables -F[root@localhost ~]# systemctl stop firewalld[root@localhost ~]# systemctl disable firewalld[root
阅读全文
摘要:rsync+inotify-tools与rsync+sersync架构的区别1,rsync+inotify-tools只能记录下被监听的目录发生的变化(增删改)并没有把具体变化的文件或目录记录下来在同步时,并不知道具体哪个文件或目录发送变化而是每次都对整个目录树来进行便利查找变更文件然触发全部数据进
阅读全文
摘要:构建秘钥对验证的SSH 体系 客户端IP 192.168.30.25 服务器IP 192.168.30.23 启动秘钥验证 1在客户端创建秘钥对 Ssh-keygen -t rsa ecdsa , rsa ,dsa ,,,,通过-t 选项来指定 Ls -l .ssh/id_rsa* 形成秘钥对 2
阅读全文
摘要:注意事项:需要ping通外网 需要LAMP架构yum -y install httpd php php-mysql mariadb-server mariadb sqlite php-dom php-mbstring php-gd php-pdo 开启服务[root@owncloud ~]# set
阅读全文
摘要:首先出现这个问题肯定是第一次下载虚拟机把之前的注册表覆盖了,网卡找不到,首先卸载VMware 并且将C\ProgramData下的VMware文件夹删除掉 ,下载cceaner,点击注册表清除干净,再安装一下虚拟机就可以了
阅读全文

浙公网安备 33010602011771号