如果执行下面的node.js安装出现如下错误
/home/vlance/www/node-v0.6.10/wscript:374: error: Could not autodetect OpenSSL support. Make sure OpenSSL development packages are installed. Use configure --without-ssl to disable this message.
执行下面命令
sudo apt-get install libssl-dev
ubuntu下安装node.js error could not configure a cxx compiler configure
./configure
make
sudo make install
node.js环境安装
https://github.com/joyent/node/wiki/Installation
1.下载
wget http://nodejs.org/dist/v0.6.10/node-v0.6.10.tar.gz
2.解压
tar zxvf node-v0.6.10.tar.gz
3.配置和安装
cd node-v0.6.10
./configure --prefix=/opt/node
make
make install
4.配置全局变量
#vi /etc/profile
export PATH=$PATH:/opt/node/bin
# source /etc/profile ##使环境变量生效
redis安装
$ wget http://redis.googlecode.com/files/redis-2.4.17.tar.gz
$ tar xzf redis-2.4.17.tar.gz
$ cd redis-2.4.17
$ make
修改配置文件
$ cd redis-2.4.17
$ vi redis.conf
修改
daemonize yes
bind 172.17.187.69
requirepass 12345
保存
$ cd redis-2.4.17
$ cd src
$ ./redis-server ../redis.conf
查看进程
netstat -npl|grep 6379
安装php的redis扩展
https://github.com/nicolasff/phpredis/downloads
下载扩展包
nicolasff-phpredis-2.2.2-48-g7dfac44.tar.gz
查看目录 whereis phpize
/usr/bin/phpize
./configure
make
sudo make install
如果没有phpize扩展
apt-get install php5-dev
就有了