Linux使用lsyncd实现2个文件夹实时同步

5-04 2,019 views

官方文档: https://axkibe.github.io/lsyncd/download/ 1.安装 $ yum install lsyncd $ yum install rsync $ yum install libtermcap-devel ncurses-devel l...
阅读全文 0

firewall 防火墙常用命令

4-09 1,535 views

查看版本 $ firewall-cmd --version 0.4.3.3 help $ firewall-cmd --help 状态 $ firewall-cmd --state running 重载配置 $ firewall-cmd --reload 重新加载...
阅读全文 0

awk 访问nginx 日志常用命令

4-09 1,423 views

1.根据访问IP统计UV awk '{print $1}' access.log|sort | uniq -c |wc -l 2.统计访问URL统计PV awk '{print $7}' access.log|wc -l 3...
阅读全文 0

修改linux centos系统默认时区

4-09 1,515 views

方法一 先安装ntpdate: yum install -y ntpdate 再选择一个时间服务器来更新时间: ntpdate time.windows.com 恢复系统时间为utc时间 ln -sf /usr/share/zo...
阅读全文 0

利用 yum 更新安全补丁

4-09 1,666 views

安装插件 yum install yum-security 列举安全补丁 yum --security check-updateyum updateinfo list securityyum list updates --securityyum list-sec secur...
阅读全文 0

linux shell脚本定时备份网站和数据库

4-09 1,243 views

目标 每天晚上12点备份网站所有文件和数据库,只保留最近5天的数据。 不做好数据备份,到时会死的很惨。 shell脚本 $ vim backup.sh 脚本内容 #!/bin/sh #日...
阅读全文 0

yum 安装redis6

10-11 3,944 views

更新yum源 # EPEL的全称叫 Extra Packages for Enterprise Linux 。EPEL是由 Fedora 社区打造,为 RHEL 及衍生发行版如 CentOS、Scientific Linux 等提供高质...
阅读全文 0

centos 安装 bento4 处理mp4 为 MPEG-DASH流

6-25 4,442 views

Bento4 Bento4是一个C ++类库和工具,旨在读取和写入ISO-MP4文件。此格式在国际规范ISO / IEC 14496-12、14496-14和14496-15中定义。该格式是Apple Quicktime...
阅读全文 0

centos7 yum安装ffmpeg

6-25 2,664 views

centos7 yum安装ffmpeg $ yum install epel-release $ yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7....
阅读全文 0

apache-kafka 和apache-zookeeper 设置 systemd服务和开机启动

4-11 2,919 views

参考:https://gist.github.com/vipmax/9ceeaa02932ba276fa810c923dbcbd4f 启动命令 #启动 $ systemctl daemon-reload $ systemctl enable kafka-zookeeper.s...
阅读全文 0