原创 itop 通過端口訪問最簡單設置方法
將itop根目錄(web)放在E:/wamp/www下安裝時頁url 設置爲 /在apache host-vhost中指定爲 E:/wamp/www/web開放訪問權限後即可
原创 MYSQL主主互備
mysql 主主互備雙機熱備的概念簡單說一下,就是要保持兩個數據庫的狀態自動同步。對任何一個數據庫的操作都自動應用到另外一個數據庫,始終保持兩個數據庫數據一致。 這樣做的好處多。 1. 可以做災備,其中一個壞了可以切換到另一個。 2. 可以
原创 mysql/mariadb 主從複製實現數據庫同步
環境:主服務器:centos 6.0 mysql 5.1.67-log IP:192.168.0.107從服務器:centos 6.0 mysql 5.1.67-log IP:192.168.0.109主服務器test數據庫CREATE T
原创 CentOS下mysql自動備份數據庫 crontab定時任務
數據庫定時備份:第一步、創建 /root/mysql_dump/mysql_back.sh mkdir -p /root/mysql_dump/mkdir -p /storage/wwwroot/data_back/內容如下:backupd
原创 sing NAGIOS to Check the Physical Memory Available on a Windows Host
By default the CheckNT command checks the virtual memory on a Windows server. So for example, if your server had 4GB of
原创 Mariadb /MySQL max_allowed_packet設置及問題
mysql根據配置文件會限制server接受的數據包大小。有時候大的插入和更新會被max_allowed_packet 參數限制掉,導致失敗。查看目前配置 www.2cto.com show VARIABLES like '%max_a
原创 PHP7下web類應用報錯 Methods with the same name as
Methods with the same name as their class will not be constructors in a future version of PHP ...這個報錯的原因是 PHP7 不再支持與類名相同
原创 mariadb開啓遠程訪問權限
首先配置允許訪問的用戶,採用授權的方式給用戶權限1GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'IDENTIFIED BY '123456' WITH GRANT OPTION; 說明:root是登陸數據
原创 CentOS Apache 500 / 403錯誤及IP無法訪問解決方法
在CentOS上安裝上Apache後,訪問頁面出現403錯誤及使用IP地址無法訪問的問題。下面介紹下403錯誤及IP無法訪問問題的解決方法:問題1:打開apache頁面提示403錯誤,此時需要關閉selinux方法1 立即關閉SELINUX