分页: 1/137 第一页 1 2 3 4 5 6 7 8 9 10 下页 最后页 [ 显示模式: 摘要 | 列表 ]

mysql找回忘记的root密码

[ 2010/03/05 17:24 | by selboo ]
Windows
1、停止mysql服务:打开命令行窗口CMD,net stop mysql

2、用另外一种方式启动Mysql:在命令行进入到mysql的安装路径下的bin目录下使用mysqld-nt.exe启动:mysqld-nt --skip-grant-tables 注意:此时CMD窗口不能关闭。

3、进入Mysql:另外打开一个命入令行窗口,在bin目录下执行mysql,此时无需输入密码即可进入。
>use mysql
>update user set password=password("new_pass") where user="root";
>flush privileges;
>exit

4、使用任务管理器,找到mysqld-nt的进程,结束进程!5、重新启动mysql服务,net start mysql 就可以用新密码登录了。
  
Linux

1、关闭Mysql: 如果 MySQL 正在运行,首先杀之 killall -TERM mysqld

2、另外的方法启动 MySQL :bin/safe_mysqld --skip-grant-tables &

3、可以不需要密码就进入 MySQL 了。

>use mysql
>update user set password=password("new_pass") where user="root";
>flush privileges; 注意点同上

4、重新杀 MySQL ,用正常方法启动 MySQL 。
Tags: ,
Rsync 介绍 http://selboo.com.cn/read.php?498

环境
Windows
cwRsyncServer_4.0.3
http://sourceforge.net/projects/sereds/files/cwRsync/4.0.3/cwRsyncServer_4.0.3_Installer.zip

Linux
Rsync 3.0.7
http://www.samba.org/ftp/rsync/rsync-3.0.7.tar.gz

Windows 配置

在 rsyncd.conf 中添加 charset=UTF-8

Linux 配置

修改 /etc/sysconfig/i18n 文件为如下
LANG="zh_CN"
SUPPORTED="zh_CN.UTF-8:zh_CN:zh:en_US.UTF-8:en_US:en"
SYSFONT="latarcyrheb-sun16"
使配置生效:
source /etc/sysconfig/i18n

同步参数
rsync --iconv=GBK,UTF-8 --protect-args -vlzrpuDP --progress --delete --password-file=/rsync/rsync.passwd rsync@192.168.100.1::dome /dome/
主要就是添加红色字段
Tags:

十五款主流浏览器

[ 2010/03/04 00:02 | by selboo ]
      浏览器大战硝烟四起,IE、Safari、Opera、GreenBrowser、Flock、世界之窗浏览器、搜狗浏览器、傲游Mathon、360浏览器、火狐中国版、谷歌Chrome、Avant Browser、Sleipnir、FlashPeak SlimBrowser、TT浏览器。





点击在新窗口中浏览此图片
      GreenBrowser 是你最容易使用、灵活、高效、贴心的绿色浏览器!GreenBrowser 的下载和使用是完全免费的. 如果你认为 GreenBrowser 很不错, 欢迎你向更多的朋友和网友推荐 GreenBrowser!

  广告过滤, 鼠标手势, 鼠标拖拽, 鼠标拖拽菜单, 自动填表, 自动滚屏, 自动刷新, 自动隐藏, 自动保存, 分类保存, 身份信息, 模拟按键, 网速监测, 搜索栏, 扩展工具栏, 收集器, 页面管理器, 下载管理器, 群组, 插件, 皮肤, 代理, 启动模式, 网址缩写, 一键通, 链接分析, 状态栏显示设置, 清除历史信息, 页面下载控制, 页面缩放, 页面背景色设置, 输入法控制, 快捷菜单, 快速拨号, 老板键, 自定义快捷键, 视频独立播放器...

点击在新窗口中浏览此图片
      世界之窗浏览器是一款小巧、快速、安全、功能强大的多窗口浏览器,它是完全免费,没有任何功能限制的绿色软件。

      世界之窗浏览器兼容微软IE浏览器,可运行于微软windows98/ME/2000/XP/Vista系列操作系统上,它使用IE浏览器相同的内核,因此网页显示效果可以与IE浏览器完全相同,推荐您同时安装IE6.0版或者更高的版本。

      世界之窗浏览器由凤凰工作室出品,它完全免费,没有任何功能限制,不捆绑任何第三方软件,可以干净卸载,请您放心使用。

      不同于常见的其它IE内核浏览器,世界之窗浏览器使用C++和Win32 SDK开发,自行针对浏览器开发进行了代码库的封装,具有更扁平更透明的封装特性,功能实现的方法更加灵活快速;世界之窗2.0版本在积累了1.x系列版本的长期开发经验基础上,所有程序架构代码全部重写、所有浏览增强功能代码全部重写以追求更完美更优秀的软件品质。

      世界之窗是一款安全的绿色软件,可以完全卸载,绿色版只需删除软件目录即可。安装版需要进入:开始菜单→ 控制面板→ 添加删除程序→选择“世界之窗浏览器”然后卸载。

点击在新窗口中浏览此图片
      Avant 浏览器友好的用户界面为你的网络冲浪带来全新的效率和透明性。软件版本的不断升级使产品的可靠性稳步提高。Avant 浏览器是免费的吗? 对了! 100%免费! 不收取任何费用。 没有任何限制。 没有Adware广告病毒。 没有间谍软件。

点击在新窗口中浏览此图片
      谷歌浏览器能以超快的速度运行网页和应用程序。

点击在新窗口中浏览此图片
      屡获大奖的Firefox火狐浏览器拥有在安全、速度、用户交互等方面大量的软件特性,会改变您使用互联网的体验。
      
点击在新窗口中浏览此图片

点击在新窗口中浏览此图片

点击在新窗口中浏览此图片

点击在新窗口中浏览此图片

点击在新窗口中浏览此图片

点击在新窗口中浏览此图片

点击在新窗口中浏览此图片

点击在新窗口中浏览此图片

点击在新窗口中浏览此图片
Tags:

Xen 下安装 Linux

[ 2010/03/01 18:29 | by selboo ]
用户手册 Xen v3.0 http://selboo.com.cn/book/Xen3man/

重建一个10G 硬盘
[root@localhost ~]# dd if=/dev/zero of=/home/xenlinux/centos-xen bs=1M count=10240

开始安装
[root@localhost boot]# virt-install
What is the name of your virtual machine? centos    // 名称
How much RAM should be allocated (in megabytes)? 512  // 内存
What would you like to use as the disk (file path)? /home/xenlinux/centos-xen  // 使用上面建立的文件
Would you like to enable graphics support? (yes or no) no    // 是否启动图形
What is the install location? /iso/CentOS-5.3-x86_64-bin-DVD.iso  // 安装镜像

在下一步就像平常安装linux 一样...
安装完成之后会生成一个配置文件 /etc/xen/centos

[root@localhost ~]# xm list
Name                                      ID Mem(MiB) VCPUs State   Time(s)
Domain-0                                   0     1228     8 r-----     47.2
centos                                     1      511     1 -b----      5.5

简单一些调整

增加内存
[root@localhost ~]# xm mem-set centos 512

重启 关机 开机
[root@localhost ~]# xm reboot centos
[root@localhost ~]# xm shutdown centos
[root@localhost ~]# xm create centos

或着修改配置文件
[root@localhost ~]# cat /etc/xen/centos
name = "centos"
uuid = "eba2a894-1c3f-e5f8-7da5-67148135076f"
# 设置内存
maxmem = 512
memory = 512
# 设置CPU
vcpus = 2
bootloader = "/usr/bin/pygrub"
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"
vfb = [  ]
disk = [ "tap:aio:/home/xenlinux/centos.img,xvda,w" ]
vif = [ "mac=00:16:3e:30:5c:f8,bridge=xenbr0" ]

更多命令请查看帮助
Tags: ,

Centos Xen 安装

[ 2010/03/01 18:15 | by selboo ]
配置 yum
[root@localhost kernels]# vi /etc/yum.repos.d/1.repo
[centos]
baseurl=file:///mnt
enabled=1

修改 /etc/yum.conf 下的 gpgcheck=1  为 gpgcheck=0

挂在镜像
mount -o loop /iso/CentOS-5.3-x86_64-bin-DVD.iso /mnt/

安装 xen
[root@localhost kernels]# yum install *xen*

修改 xen 内核为第一启动项

[root@localhost boot]# vi /boot/grub/grub.conf

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/sda5
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-128.el5xen)
        root (hd0,0)
        kernel /xen.gz-2.6.18-128.el5
        module /vmlinuz-2.6.18-128.el5xen ro root=LABEL=/
        module /initrd-2.6.18-128.el5xen.img
title CentOS (2.6.28)
        root (hd0,0)
        kernel /vmlinuz-2.6.28 ro root=LABEL=/
        initrd /initrd-2.6.28.img
title CentOS (2.6.18-8.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-8.el5 ro root=LABEL=/
        initrd /initrd-2.6.18-8.el5.img

重启系统

[root@localhost boot]# uname -a
Linux localhost.localdomain 2.6.18-128.el5xen #1 SMP Wed Jan 21 11:12:42 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost boot]# xm list
Name                                      ID Mem(MiB) VCPUs State   Time(s)
Domain-0                                   0     1484     8 r-----     15.0

安装成功
Tags: ,
分页: 1/137 第一页 1 2 3 4 5 6 7 8 9 10 下页 最后页 [ 显示模式: 摘要 | 列表 ]