随笔分类 - linux
摘要:1. 装包 yum -y install telnet telnet-server 2. 启服务 systemctl enable telnet.socket --now 3. 防火墙开放端口 firewall-cmd --list-port firewall-cmd --permanent --a
阅读全文
摘要:1. 未学安装,先学卸载 apt remove --purge vsftpd 查看本地用户 root@santiagod-virtual-machine:~# tail -3 /etc/passwd santiagod:x:1000:1000:santiagod,,,:/home/santiagod
阅读全文
摘要:1. 初始化密码 mysqladmin -uroot -p'password' password 'new-password' [root@controller3 ~]# yum -y install mariadb ...... [root@controller3 ~]# systemctl st
阅读全文
摘要:最近配置centos 的yum 源时,想要配置一个通配的yum源,注意到发行的网络yum源的url地址中通常有两个变量 https://vault.centos.org/$releaser/cloud/$basearch/openstack-ussuri/repodata/ 等效于以下模式(具体内容
阅读全文
摘要:sshpass -p the_password ssh -o StrictHostKeyChecking=no root@domainname_or_ip remote_command #远程执行命令 scp -o StrictHostKeyChecking=no 远程复制 sshpass -p X
阅读全文
摘要:参考链接:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_basic_system_settings/using-chrony_configuring-basic-sy
阅读全文
摘要:1. 根据提示,使用ctrl+] ,退出到telnet >界面 2. 使用quit退出 3. 最简单的退出方式,强制退出: ] + Enter键
阅读全文
摘要:1. 源码包下载并解压 wget http://download.redis.io/releases/redis-6.2.6.tar.gz tar -zxvf redis-6.2.6.tar.gz 2. 源码安装 make&&make install PREFIX=/usr/local/redis/
阅读全文
摘要:例:sed '1,3{s/^/#/}' sed.test 删空 sed '/^$//g' sed.test
阅读全文
摘要:Xshell 远程时可以用如下方式进行明文密码免交互登陆: ssh 用户:密码@ip 可换到linux时,就不行了,在某些不适合使用公钥免密的情况下,到底该怎样免交互登陆? 于是我找到了sshpass这一个简单实用的小工具,使用规则如下: 远程登陆:sshpass -p "远程主机密码" ssh r
阅读全文