随笔分类 - Linux相关
摘要:Mysql每天执行计划,保留最新的10条数据,其余的删除 1、Mysql 保留最新的10条数据 sql语句: 2、新建存储过程(Navicat中) 3、新建事件 3.1 在定义中输入CALL test(); 3.2 在计划中设置STARTS和ENDS,我设置的每天一次 常见问题: 若提示“事件计划已
阅读全文
摘要:1、cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 2、使用tzselect命令,根据提示选择 3、使用date查看是否修改正确 4、运行hwclock命令 修改完成,ok!
阅读全文
摘要:supervisor官方网站 http://supervisord.org 1、安装supervisord Ubuntu: $sudo apt-get install python-setuptools $sudo apt-get install supervisor CenOS: sudo yum
阅读全文
摘要:1.安装Apache yum install httpd 相关命令: systemctl start httpd.service #启动apache systemctl stop httpd.service #停止apache systemctl restart httpd.service #重启a
阅读全文
摘要:Linux Apache 多站点配置 Centos 配置方式: 找到 /etc/httpd/conf/http.conf 添加监听端口,eg: Listen 89 虚拟机配置,一个端口对应一个 保存退出。重启apache systemctl restart httpd.service Ubuntu配
阅读全文

浙公网安备 33010602011771号