摘要:
#!/bin/bash #199服务器大于180天的删除 linshi=`ssh root@43.254.2.199 "ls /data/wwwlogs/tengine65 |grep ".gz" | wc -l"` ssh -Tq root@43.254.2.199 << eeooff if [ 阅读全文
摘要:
内核版本uname -aredhat发行版cat /etc/redhat-release显示SELinux的状态getenforce关闭防火墙systemctl stop firewalld查看内存free -m#查看repos源#cat /etc/yum.repos.d/local.repo安装e 阅读全文
摘要:
实践:centos7下:vim /etc/hosts.allowsshd:ipvim /etc/hosts.denysshd:ALL重启:systemctl restart sshd and networkcentos8下:链接:https://blog.csdn.net/tiging/articl 阅读全文
摘要:
1.创建新用户并修改密码; useradd leipasswd lei2.修改ssh配置文件;vim /etc/ssh/sshd_configPort 10260AllowUsers leiPermitRootLogin yes 3.重启ssh。service sshd restart/etc/in 阅读全文
摘要:
“父母之爱子,则为之计深远。 媪之送燕后也,持其踵,为之泣,念悲其远也,亦哀之矣。 已行,非弗思也,祭祀必祝之,祝曰:‘必勿使反。’ 岂非计久长,有子孙相继为王也哉?” 阅读全文
摘要:
脚本说明: 每天00:00定时切割Nginx日志 [root@check1 ~]# cat /etc/crontab SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root HOME=/ # For details see man 阅读全文
摘要:
原文链接:https://blog.csdn.net/gdolphinw/article/details/89568136——————————————————————————————————————————————————————yum安装mysql5.7yum list |grep mysqlrp 阅读全文
摘要:
https://my.oschina.net/wuweixiang/blog/3014644Confluence知识库部署与还原一.部署1.安装 mysql 5.7,安装docker配置数据库mkdir -p /jiraconfluencemysql210/mysql/data_mysql_volm 阅读全文
摘要:
链接:https://www.cnblogs.com/shidian/p/11589626.html1.准备安装包下载地址:https://dev.mysql.com/downloads/mysql/5.7.html#downloads2.解压安装包tar -xvf mysql-5.7.26-lin 阅读全文
摘要:
原文链接:https://baijiahao.baidu.com/s?id=1727961254233220796&wfr=spider&for=pc(一)概述MySQL中存在着以下几种日志:重写日志(redo log)、回滚日志(undo log)、二进制日志(bin log)、错误日志(erro 阅读全文
摘要:
开启一个端口firewall-cmd –zone=public –add-port=80/tcp –permanent重新载入firewall-cmd –reload查看firewall-cmd –zone= public –query-port=80/tcp删除firewall-cmd –zone 阅读全文
摘要:
#!/bin/bash source /etc/profile source ~/.bash_profile set -o nounset file=`date "+%Y_%m_%d" -d "1 day ago"` docker cp confluence:/var/atlassian/confl 阅读全文