星期三, 十二月 02, 2015

update php5 CPCu to newest version

This is a note to #14273 (Use APCu only if available in version 4.0.6 and higher)
As Ubuntu 14.04 ships currently the php5-apcu version 4.0.2, you get according the merged PR above the Warning in OwnCloud. Ubuntu 14.10 has already release 4.0.6.

星期日, 十一月 29, 2015

挂载linux加密分区

映射分区

cryptsetup luksOpen /dev/sdc1 crypt-sdc1    // /dev/sdc1 为加密后的分区
回车后会提示输入加密密码,输入后查看/dev/mapper/下回出现揭秘后的分区crypt-sdc1

挂载分区

映射后挂载方式和普通的挂载方式一样。
mount /dev/mapper/crypt-sdc1 /mnt/sdc1/

关闭挂载分区

umount /mnt/sdc1    //取消挂载
cryptsetup luksClose crypt-sdc1  //关闭加密分区

具体操作见:http://pengxie.blog.51cto.com/6421405/1168041

星期三, 八月 12, 2015

我家宝宝不会哭----分享在美国养孩子的妈妈经

我在美国生了两个孩子,生育前后都有培训班,家庭医生每次洗脑让我受益匪浅,我的两个宝宝在婴儿时期乖巧得好像家里没有小婴儿,我甚至疑心她们会不会哭?如今外婆常拿这句傻话笑我。回国后看到朋友或邻居们被小祖宗折磨得精疲力竭,我遇到一个就会分享妈妈经,很没效率,想着将妈妈经写下来或许会帮到手忙脚乱、身心疲惫的年轻爸爸妈妈。再次感谢南加州着名的儿科医生JANE GU,这几年在她的指导下学到很多一辈子都受益的育儿宝典。 

星期一, 七月 27, 2015

iptables详解

一:前言

防火墙,其实说白了讲,就是用于实现Linux下访问控制的功能的,它分为硬件的或者软件的防火墙两种。无论是在哪个网络中,防火墙工作的地方一定是在网络的边缘。而我们的任务就是需要去定义到底防火墙如何工作,这就是防火墙的策略,规则,以达到让它对出入网络的IP、数据进行检测。

星期二, 七月 07, 2015

Oracle Database 11g Release 2 Installation on RHEL/CentOS 6.x/5.x/4.x

As we all know Oracle database is the most popular and widely used Relational Database Management System (RDBMS) in the world. This post describes step by step installation ofOracle Database 11g Release 2 32bit on CentOS 6.4 32bit. The installation steps should not be vary on most of the Red Hat based Linux distributions.
Installing Oracle Database 11g Release 2
Step 1: Install Oracle Dependencies

星期六, 五月 02, 2015

配置国内的网易镜像源


ubuntu@Template-Instance:~$ sudo sed -i s/us.archive.ubuntu.com/mirrors.163.com/g /etc/apt/sources.list
ubuntu@Template-Instance:~$ sudo sed -i s/security.ubuntu.com/mirrors.163.com/g /etc/apt/sources.list
ubuntu@Template-Instance:~$ sudo apt-get update

星期五, 三月 27, 2015

reset mysql password

You have to reset the password! steps for mac osx(tested and working) and ubuntu
Stop MySQL
$ sudo /usr/local/mysql/support-files/mysql.server stop
Start it in safe mode:
$ sudo mysqld_safe --skip-grant-tables
(above line is the whole command)
This will be an ongoing command until the process is finished so open another shell/terminal window, log in without a password:
$ mysql -u root

mysql> UPDATE mysql.user SET Password=PASSWORD('password') WHERE User='root';
Start MySQL
sudo /usr/local/mysql/support-files/mysql.server start
your new password is 'password'.