摘要: <VirtualHost *:80> ServerAdmin vip_star_hr@163.com ServerName website.com ServerAlias www.website.com *.website.com 10.10.0.1 DocumentRoot /home/websi 阅读全文
posted @ 2015-06-09 18:14 Mr黄瑞 阅读(1191) 评论(0) 推荐(0) 编辑
摘要: 设置其他主机能使用 root 登陆数据库Mysql>GRANT ALL PRIVILEGES ON * . * TO 'root'@'%'IDENTIFIED BY 'password'Mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'10.%'IDENTIF 阅读全文
posted @ 2015-06-09 17:50 Mr黄瑞 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 安装2台windows Server 服务器,分别安装Mysql,配置环境变量,完成安装确认在CMD窗口可以使用Mysql命令在Master服务器上创建同步账号,确保Slave服务器能访问Master服务器数据库Master DB Server IP:10.10.0.144Slave DB Serv... 阅读全文
posted @ 2015-06-09 17:43 Mr黄瑞 阅读(991) 评论(0) 推荐(0) 编辑
摘要: 安装必备软件 $ yum -y install iptables iptables-services net-tools vim wget $ wget -P ~ https://github.com/yeasy/docker_practice/raw/master/_local/.bashrc_d 阅读全文
posted @ 2015-06-09 16:43 Mr黄瑞 阅读(539) 评论(0) 推荐(0) 编辑
摘要: 1、 提示windows 无法安装到这个磁盘,选中的磁盘具有MBR分区表。Windows cannot be installed to this disk.the selected disk has an MBR patition table2、 在此界面上按Shift + F10,打开CMD窗口输... 阅读全文
posted @ 2015-06-09 16:33 Mr黄瑞 阅读(1113) 评论(0) 推荐(0) 编辑
摘要: 打开windows server 计划任务管理器。定时执行如下的Bat脚本即可。在D盘新建一个monitor文件夹,创建ApacheMysql.bat文件。内容如下:在monitor文件夹中新建mysql、apache文件夹进入mysql文件夹,创建sql.sql文件,保存如下内容:select c... 阅读全文
posted @ 2015-06-09 16:12 Mr黄瑞 阅读(401) 评论(0) 推荐(1) 编辑
摘要: 拷贝根目录下的 wp-login.php文件命名为wp-login.php.backup,把原文件重命名为managewp.phpsed -i "s/wp-login.php/managewp.php/g" /home/youwebsite.com/public_html/managewp.php 阅读全文
posted @ 2015-06-09 15:45 Mr黄瑞 阅读(1120) 评论(0) 推荐(0) 编辑
摘要: Alias /mrtg /var/www/mrtg <Location /mrtg>Order deny,allowDeny from noneAllow from allAllow from ::1# Allow from .example.com</Location> 重启apache访问htt 阅读全文
posted @ 2015-06-09 15:34 Mr黄瑞 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 打开网址https://www.startssl.com/?app=12,选择Sign-up注册。输入个人注册信息 需注意以下几点:(1)地址必须详细,否则你会收到这样的邮件: Please provide us with your street address and house number o... 阅读全文
posted @ 2015-06-09 14:54 Mr黄瑞 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 从服务器下载文件scp username@servername:/path/filename /tmp/local_destination例如:scp codinglog@192.168.0.101:/home/kimi/test.txt /tmp/local_destination##把 192.... 阅读全文
posted @ 2015-06-09 13:51 Mr黄瑞 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 安装方法http://php.net/manual/en/geoip.installation.phpgeoip中的PHP函数介绍:http://php.net/manual/en/book.geoip.php若Centos安装提示没有程序包,请执行:rpm -ivh http://ftp.jais... 阅读全文
posted @ 2015-06-09 13:37 Mr黄瑞 阅读(1009) 评论(0) 推荐(0) 编辑
摘要: 本例为wordpress管理员登陆限制安装rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmyum -y install fail2ban配置默认开启了ssl控制介绍目录 a 阅读全文
posted @ 2015-06-09 13:25 Mr黄瑞 阅读(516) 评论(0) 推荐(0) 编辑
摘要: apache 限制并发数需要安装:mod_limitipconn模块安装方法:yum install mod_limitipconn安装完成后:检查 Apache 模块目录,看是否含有 mod_limitipconn.so 文件.在 httpd.conf 中添加ExtendedStatus OnLo... 阅读全文
posted @ 2015-06-09 13:12 Mr黄瑞 阅读(769) 评论(0) 推荐(0) 编辑
摘要: 查看系统下是否已经安装了sambarpm -qa |grep samba 安装sambayum -y install samba 配置samba创建目录sambamkdir -p /home/samba 修改samba权限chmod 777 /home/samba 关闭防火墙service ipta 阅读全文
posted @ 2015-06-09 09:42 Mr黄瑞 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 安装rsync服务yum -y install rsync创建密码文件rsync.passwordvi /etc/rsync.password只存储密码即可,无需用户名。密码为Rsync服务器端的/etc/rsyncd.secrets密码给密码文件添加正确的权限chmod 600 /etc/rsyn... 阅读全文
posted @ 2015-06-09 09:32 Mr黄瑞 阅读(465) 评论(0) 推荐(0) 编辑
摘要: Centos 6.3 已经自带Rsync服务安装xinetd# yum -y install xinetd编辑/etc/xinetd.d/rsync文件,把disable = yes修改为disable = no# default: off# description: The rsync serve... 阅读全文
posted @ 2015-06-09 09:24 Mr黄瑞 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 打开usertrack_moduleLoadModule usertrack_module modules/mod_usertrack.so配置跟踪选项CookieTracking onCookieExpires "1 years"CookieStyle CookieCookieName EASID... 阅读全文
posted @ 2015-06-09 09:14 Mr黄瑞 阅读(327) 评论(0) 推荐(0) 编辑