上一页 1 ··· 7 8 9 10 11 12 13 下一页
摘要: 要求:删除linux下2天前的指定文件find 文件问题:在 tmp 目录下有大量包含 picture_* 的临时文件,每天晚上 2:00 对一天前的文件进行清理。之前在 crontab 下跑如下脚本,但是发现脚本效率很低,每次执行时负载猛涨,影响到其他服务#!/bin/shfind /tmp -n... 阅读全文
posted @ 2015-06-10 10:37 Mr黄瑞 阅读(2292) 评论(0) 推荐(0) 编辑
摘要: 在当前Linux生成公钥私钥ssh-keygen公钥私钥存放路径为:~/root/.ssh/id_rsa id_rsa.pub 登陆被远程主机,进入目录~/root/.ssh/是否存在authorized_keys文件,若不存在新建authorized_keys文件将第一步生成的id_rsa.pub文件内容,拷贝到authorized_keys中也可以用命令ssh-copy-id root@19... 阅读全文
posted @ 2015-06-10 10:27 Mr黄瑞 阅读(300) 评论(0) 推荐(0) 编辑
摘要: <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) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 下一页