摘要: #####unzip命令使用 1、不想覆盖已存在的文件时使用 unzip -n filename.zip 2、覆盖已存在的文件时使用 unzip -o filename.zip #####添加用户 adduser 用户名 #####修改用户口令 passwd 用户名 #####修改普通用户的用户组 阅读全文
posted @ 2021-12-24 15:57 Summit20 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 修改密码 test为用户名 alter user 'test'@'%' identified with mysql_native_password by '密码'; 给某个用户某个数据库权限所有权限 testdb数据库名,test用户 CREATE DATABASE testdb default c 阅读全文
posted @ 2022-05-11 14:37 Summit20 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 举例:出现traceroute: command not found,出现这种问题可能缺少工具类 点击下方链接(举例为centos7,其它版本去相应地址下载:http://mirrors.163.com/centos/) http://mirrors.163.com/centos/7/os/x86_ 阅读全文
posted @ 2021-06-30 11:05 Summit20 阅读(403) 评论(0) 推荐(0) 编辑
摘要: 1.问题描述:磁盘挂载中出现文件不存在的情况 No such file or directory 使用ls -l /dev/sda*查看磁盘是否存在(我这里是/dev/sda3) 显然不存在 执行partprobe命令 再次查看,已经恢复 挂载成功,超nice 阅读全文
posted @ 2021-06-24 09:22 Summit20 阅读(3973) 评论(0) 推荐(0) 编辑
摘要: 场景需要 1.备份文件并放在备份目录下 备份文件夹:/gd/backup/2021/5 if [-d ] then ...... fi if [-e ] then ...... fi if [-f ] then ...... fi -e 判断对象是否存在 -d 判断对象是否存在,并且为目录 -r 判 阅读全文
posted @ 2021-05-19 16:09 Summit20 阅读(1764) 评论(0) 推荐(0) 编辑
摘要: SNMP协议安装 yum -y install net-snmp* 配置snmpd.conf文件 vim /etc/snmp/snmpd.conf(默认为:public必须要改) 测试 snmpwalk -v 2c -c public localhost system 完成 阅读全文
posted @ 2020-08-28 17:56 Summit20 阅读(140) 评论(0) 推荐(0) 编辑
摘要: ifconfig:Command not found yum install net-tools vim:command not found yum -y install vim* server:command not found yum -y install server* 阅读全文
posted @ 2020-08-28 17:36 Summit20 阅读(270) 评论(0) 推荐(0) 编辑
摘要: rsync的四种模式 本地shell模式(复制本地指定目录到另一个目录) 远程shell模式(复制本地指定目录到远程主机目录) 列表模式(查看本地或远程主机的指定目录) 服务器模式(远程容灾服务器备份) 查看是否安装rsync,如果未安装命令如下: yum -y install rsync 启动rs 阅读全文
posted @ 2020-08-28 14:25 Summit20 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 查看防火墙状态 service iptables status 出现的问题 Redirecting to /bin/systemctl status iptables.service Unit iptables.service could not be found. 解决办法 yum install 阅读全文
posted @ 2020-08-28 08:42 Summit20 阅读(1015) 评论(0) 推荐(0) 编辑
摘要: #####查看ssh端口号 ssh端口号默认22 netstat tunlp |grep ssh 修改ssh端口号 vim /etc/ssh/sshd_config 修改后需要重启ssh 之前没有启动ssh使用:service sshd start 启动过ssh服务:service sshd res 阅读全文
posted @ 2020-08-27 16:08 Summit20 阅读(1325) 评论(0) 推荐(0) 编辑