标签:
【连接 WIFI】
1、查看 wifi 设备标识
$ iw dev | grep Interface
2、启用 wifi
$ ip link set wlp2s0 up
3、输入wifi 认证
wpa_supplicant -B -i wlp2s0 -c <(wpa_passphrase "FAST_HOME" "xxxxxxxxxx")
4、dhcp 获取 ip
dhclient wlp2s0
5、查看wifi连接
ip addr show wlp2s0
【安装 NodeJS】
1、准备命令:
yum -y install gcc make gcc-c++ openssl-devel wget
2、下载源码及解压:
wget http://nodejs.org/dist/v0.10.26/node-v0.10.26.tar.gz
tar -zvxf node-v0.10.26.tar.gz
3、编译及安装:
make && make install
4、验证是否安装配置成功:
node -v
【安装 mongodb 3.0.7】
1、下载安装包文件
$wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel70-3.0.7.tgz
2、解压缩安装包
$tar -zxvf mongodb-linux-x86_64-rhel70-3.0.7.tgz
3、移动文件夹
$mv mongodb-linux-x86_64-rhel70-3.0.7 /usr/local/lib/mongodb
4、创建数据路径
$mkdir /usr/local/lib/mongodb/data
$mkdir /usr/local/lib/mongodb/data/db
5、编辑配置文件“/usr/local/lib/mongodb/mongod.conf”
$vim /usr/local/lib/mongodb/mongod.conf
输入以下内容,并保存退出:
dbpath=/usr/local/lib/mongodb/data/db logpath=/usr/local/lib/mongodb/data/mongodb.log logappend=true bind_ip = 127.0.0.1 journal=true
6、连接mongod、mongos、mongo文件
$ln -s /usr/local/lib/mongodb/bin/mongod /usr/local/bin/mongod
$ln -s /usr/local/lib/mongodb/bin/mongos /usr/local/bin/mongos
$ln -s /usr/local/lib/mongodb/bin/mongo /usr/local/bin/mongo
7、编辑 /etc/rc.d/init.d/mongod 文件
$vim /etc/rc.d/init.d/mongod
输入以下内容,并保存退出:
#!/bin/sh . /etc/rc.d/init.d/functions CONFIG="/usr/local/lib/mongodb/mongod.conf" PROGRAM="/usr/local/bin/mongod" MONGOPID=`ps -ef | grep ‘mongod‘ | grep -v grep | awk ‘{print $2}‘` test -x $PROGRAM || exit 0 case "$1" in start) ulimit -n 3000 log_begin_msg "Starting MongoDB Server" $PROGRAM -f $CONFIG & log_end_msg 0 ;; stop) log_begin_msg "Stopping MongoDB Server" if [ ! -z "$MONGOPID" ]; then kill -15 $MONGOPID fi log_end_msg 0 ;; *) log_success_msg "Usage:/etc/init.d/mongodb {start|stop}" exit 1 esac exit 0
8、设置 /etc/rc.d/init.d/mongod “is executable”权限
$chmod +x /etc/rc.d/init.d/mongod
9、启动服务
$service mongod start
10、停止服务
$service mongod stop
【安装Redis 3.0.5】
1、安装 tcl
$yum -y install tcl
2、下载源文件
$wget http://download.redis.io/releases/redis-3.0.5.tar.gz
3、解压缩包
$tar -zxvf redis-3.0.5.tar.gz
4、编译
$cd redis-3.0.5
$make
5、测试、安装
$cd src
$make test
$make install
6、安装服务
$cd ..
$./utils/install_server.sh
7、重命名脚本启动文件 /etc/rc.d/init.d/redis_6379
$mv /etc/rc.d/init.d/redis_6379 /etc/rc.d/init.d/redis
8、启动服务
$service redis start
9、启动客户端、测试
$redis-cli
set id0001 abcdefg
get id0001
10、关闭服务
$service redis stop
【安装RabbitMQ 3.5.6】
1、安装Erlang(参考:http://blog.csdn.net/yecong111/article/details/9132997
https://github.com/yrashk/kerl)
1.1、现在Erlang编译安装工具
$ curl -O https://raw.githubusercontent.com/yrashk/kerl/master/kerl
$ chmod a+x kerl
1.2、查看Erlang版本,并下载、编译
$ ./kerl list releases
$ ./kerl build 18.1 18.1
1.3、安装编译的Erlang
$ ./kerl install 18.1 /usr/local/lib/erl
1.4、 检查安装好的Erlang
$ ./kerl list installations
1.5、激活
$ . /usr/local/lib/erl/activate
1.6、验证是否已经安装Erlang
$ erl -version
1.7、连接文件
$ln -s /usr/local/lib/erl/bin/erl /usr/local/bin/erl
2、下载RabbitMQ tar 包
$ wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.5.6/rabbitmq-server-generic-unix-3.5.6.tar.gz
3、解压缩
$tar -zxvf rabbitmq-server-generic-unix-3.5.6.tar.gz
$mv rabbitmq_server-3.5.6 /usr/local/lib/rabbitmq
4、连接文件
$ln -s /usr/local/lib/rabbitmq/sbin/rabbitmq-server /usr/local/bin/rabbitmq-server
$ln -s /usr/local/lib/rabbitmq/sbin/rabbitmqctl /usr/local/bin/rabbitmqctl
$ln -s /usr/local/lib/rabbitmq/sbin/rabbitmq-defaults /usr/local/bin/rabbitmq-defaults
$ln -s /usr/local/lib/rabbitmq/sbin/rabbitmq-env /usr/local/bin/rabbitmq-env
$ln -s /usr/local/lib/rabbitmq/sbin/rabbitmq-plugins /usr/local/bin/rabbitmq-plugins
5、启动服务
$rabbitmq-server start
6、安装插件
$rabbitmq-plugins enable rabbitmq_management
【安装WebStorm 10.0.4】
1、下载tar文件
$ wget http://download-cf.jetbrains.com/webstorm/WebStorm-10.0.4.tar.gz
2、解压缩包
$tar -zxvf WebStorm-10.0.4.tar.gz
$mv /usr/local/lib/WebStorm10
3、安装
$cd /usr/local/lib/WebStorm10/bin
$./webstorm.sh
4、注册
User or company Name:
mkany
===== LICENSE KEY=====
28326-12042010
00000ggr1K3lC6tTPMuJu10x7Z60Vd
yjqYwKiFkjiu1HX4zFrZArAsaSjILd
FOgZ9QW5P!U6iIAO"HLWmA6t"CK!sX
===== LICENSE END =====
标签:
原文地址:http://www.cnblogs.com/mkany/p/4997528.html