Grep how to

Reference : http://man.chinaunix.net/newsoft/grep/open.htm grep简介 grep (global search regular expression(RE) and print out the line,全面搜索正则表达式并把行打印出来)是一种强大的文本搜索工具,它能使用正则表达式搜索

How do I disable or enable the IPv6 protocol in RHEL

Issue: How do I disable or enable the IPv6 protocol in Red Hat Enterprise Linux? When I attempt to disable IPv6 in RHEL5, IPv4 does not connect. Had to re-enable IPv6 via console commands to connect to network. Environmenta: Red Hat Enterprise Linux 6 Red Hat Enterprise Linux 5 Red Hat Enterprise Linux 4 Resolution: Disabling IPv6 support in Red Hat Enterprise Linux 7 Create a new file named /etc/sysctl.

How to install Node.js

Install Node.js Install via tar ball 1 2 3 4 5 6 7 8 $ wget http://nodejs.org/dist/node-v0.4.12.tar.gz $ tar xf node-v0.4.12.tar.gz $ cd node-v0.4.12 $ ./configure $ make $ make instal l `` 1. Install via git $ git clone git://github.com/joyent/node.git $ cd node $ ./configure $ make $ sudo make install 1 2 3 4 5 Install nmp (Node Packaged Modules) --- 1. use `curl http://npmjs.