Loading...
本文基于宝塔面板测试,其他环境请自行调式,所有设置改动之前请先备份好原文件。禁止ip直接访问主机的目的是为了避免其他人把未备案的域名解析到自己的服务器IP,而导致服务器被断网,我们可以通过禁止使用ip访问的方法,防止此类事情的发生。解决方法:本文介绍修改配置文件nginx.conf两种方法:1.在server段里插入如下正则:server { listen 80; listen 44...
需求在2-3台服务器上实现文件的增量同步(备份),因其中一台服务器为图片存储服务器,几年下来存储的图片已经达到GB级别,且每时每刻都有新的文件写入,传统的...
AMH面板虽然收费,但是以及其稳定的性能也赢得了不少用户。我在使用过程中发现如果使用极速免编译安装方式来安装面板,那么AMH默认安装的组件非常老旧它们分别是nginx-generic-1.12、mysql-generic-5.5、php-generic-5.3并且因为面板的运行非常依赖这些组件,所以用户无法从面板上直接升级或切换,博主在更早的时候曾经分享过AMH5.3切换Nginx组件的方式...
首先使用以下代码测试email.class.php定义发送邮件的库<?php class smtp { /* Public Variables ...
2019年6月10日,这一天,注定是一个不平凡的日子,因为还有两天就是我的生日。没想到就在这天发生了每个运维都不愿意见到的事情,数据库丢失,这真是老天送给我最恶毒的生日礼物了!数据库丢失这件事情对于我来说犹如晴天霹雳。下面就先简述一下事情发生的经过吧!这一切的源头都在于本人经验不足、管理混乱。2019年6月10日-11日23:40 使用SSH登录到WEB服务器执行update00:06 网站...