RedHat 7中,很多命令发生了改变,绑定磁盘不再是start_udev,而是udevadm,具体绑定方式, 请看另一篇博文:http://www.cnblogs.com/zx3212/p/6757394.html 1、首先在系统层面查看磁盘绑定情况,如下 [root@raca1 ~]# ls -l /dev/asm* lrwxrwxrwx 1 root root 4 Apr 24 15:34 /dev/asm-datadisk1 -> sdf2 lrwxrwxrwx 1 root root 4…
各种 Python 库/模块/工具 1 算法 1.1 字符串处理 re 正则表达式的标准库。 StringIO / cStringIO 以读写文件的方式来操作字符串(有点类似于内存文件)。 cStringIO 是 C 语言实现的,提供高性能;而 StringIO 是 Python 实现的,提供 Unicode 兼容性。 chardet chardet…
一、从官网下载Percona5.7 需要注意是服务器的版本。我这里选择的是Percona-Server-5.7.20-19-r119-el6-x86_64-bundle.tar 二、解压 tar xvf Percona-Server-5.7.20-19-r119-el6-x86_64-bundle.tar 能够看到解压出7个文件 [root@localhost percona]# tar xvf Percona-Server-5.7.20-19-r119-el6-x86_64-bundle.tar Percona-Server-57-debuginfo-5.7.20-19.1.el6.x86_64.rpm Percona-Server-client-57-5.7.20-19.1.el6.x86_64.rpm Percona-Server-devel-57-5.7.20-19.1.el6.x86_64.rpm Percona-Server-rocksdb-57-5.7.20-19.1.el6.x86_64.rpm Percona-Server-server-57-5.7.20-19.1.el6.x86_64.rpm Percona-Server-shared-57-5.7.20-19.1.el6.x86_64.rpm Percona-Server-test-57-5.7.20-19.1.el6.x86_64.rpm Percona-Server-tokudb-57-5.7.20-19.1.el6.x86_64.rpm mv Percona-Server-5.7.20-19-r119-el6-x86_64-bundle.tar /opt 三 .…
a linux server abnormal recently, it was pretty slow and many program had no response even halted. obvioused a couple of days, we found that…
假设生成100MB的磁盘镜像 ,块大小为1024B [root@AMH ~]# dd if=/dev/zero of=/root/disk.img bs=1024 count=102400 记录了102400+0 的读入 记录了102400+0 的写出 104857600字节(105 MB)已复制,0.944818 秒,111 MB/秒 关联磁盘镜像与块设备(loop0到loop7均可使用) [root@AMH ~]# losetup /dev/loop0 /root/disk.img 格式化…
SSH connection refused by remote host in some times, due to the operation by mistake. for example ,someone may have executed “chmod -R 777 /home”…
Query all users in oracle, but first of all, your account should have dba permission,such as sys , system. select * from dba_users; Query all…