mysql密码丢失时恢复密码的方法

九月 28th, 2009 | 2 Comments | Posted in 4.数据库, mysql | 阅读次数: 95 次

制作:高进波
时间:2009-09-28

适合所有linux,unix系统

mysqld_safe –skip-grant-tables &

设置新密码
mysqladmin -u root passwor[......]

Read more

Tags:

增加SWAP分区大小

九月 28th, 2009 | 4 Comments | Posted in 1.操作系统, Centos, Ubuntu | 阅读次数: 130 次

制作:高进波
时间:2009-09-27

cd /var

查看现在swap分区大小
free -m

设置大小4G
dd if=/dev/zero of=swapfile bs=1024 count=4000000[......]

Read more

Tags: ,

用口令保护GRUB

九月 28th, 2009 | 2 Comments | Posted in 1.操作系统, Centos, Ubuntu | 阅读次数: 45 次

制作:高进波
时间:2009-09-28

1.生成密码hash
/sbin/grub-md5-crypt

2.编辑GRUB配置文件

vi /boot/grub/grub.conf #在timeout下添加

p[......]

Read more

Tags: ,

10个步骤在Centos5.3下成功安装oracle11g r2

九月 27th, 2009 | 3 Comments | Posted in 4.数据库, Centos, oracle | 阅读次数: 1,887 次

制作:高进波 时间:2009-09-27 环境: centos 5.3 x86 oracle 11g r2 for linux   vi /etc/hosts 127.0.0.1 oracle.gaoj[......]

Read more

Tags:

1小时配置功能强大的开源主机管理系统 — ISPCP

九月 25th, 2009 | 3 Comments | Posted in 1.操作系统, Centos, ISPCP, Ubuntu | 阅读次数: 1,331 次

制作:高进波 时间:2009-09-03 成功案例:www.hostcoming.com IspCP Omega 简单介绍: IspCP 是作为另一款开源虚拟主机管理系统VHCS2的替代产品,采用Apache2+PHP5(fas[......]

Read more

CentOS5.3上安装配置PPTPD-VPN

九月 20th, 2009 | 5 Comments | Posted in 1.操作系统, Centos, VPN | 阅读次数: 694 次

制作:高进波
时间:2009-09-20

1.安装PPP
yum install ppp

2.配置pptpd源
vi /etc/yum.repos.d/pptpd.repo
[pptpd]
name=Doylenet[......]

Read more

Tags: ,

30分钟配置好-Puppet: 强大的中心化配置管理系统

九月 16th, 2009 | 44 Comments | Posted in Centos, Ubuntu | 阅读次数: 1,028 次

制作:高进波
时间:2009-09-15

介绍:
不管是管理1台,或者是上万台机器,puppet都能轻松搞定。让你的所有配置工作整齐划一。
所谓配置管理系统,就是管理机器里面诸如文件,用户,进程,软件包这些资源。传统的方法要管理[......]

Read more

Tags:

批量搜索和替换文件内容

九月 15th, 2009 | 3 Comments | Posted in Perl | 阅读次数: 499 次

制作:高进波
时间:2009-09-15

使用PERL工具执行全局搜索和替换,功能非常强大,可对文件进行批量查找替换.

1.选项-e,执行-e后面的代码
打印hello world
perl -e ‘print “hell[......]

Read more

Tags:

Windows服务器自动维护脚本

九月 14th, 2009 | 2 Comments | Posted in 1.操作系统, Windows | 阅读次数: 238 次

制作:高进波
时间:2009-09-14

windows server 2003中tomcat监听80端口,异常关闭.
解决方案:
间隔5分钟自动检测80端口是否监听,如果没有监听,自动启动tomcat,并写入日志文件

步[......]

Read more

Tags: , ,

在LINUX下备份-恢复MBR

九月 14th, 2009 | 2 Comments | Posted in Centos, Ubuntu | 阅读次数: 226 次

制作:高进波
时间:2009-09-14

1.术语解释
MBR:
主引导记录,为计算机启动后从可启动介质上首先装入内存并且执行的代码,通常用来解释分区结构。以硬盘为例,通常为LBA的0扇区。

EBR:
自MICROSOF[......]

Read more

Tags: