cp /usr/local/ssl/lib/pkgconfig/libcrypto.pc /usr/local/lib/pkgconfig/libcrypto.pc
cp /usr/local/ssl/lib/pkgconfig/libssl.pc /usr/local/lib/pkgconfig/libssl.pc
cp /usr/local/ssl/lib/pkgconfig/openssl.pc /usr/local/lib/pkgconfig/openssl.pc 2 Mongodb环境搭建 2.1 安装
Suse10,只能安装legacy-static版,不然会报“floating point exception”错误,官方解释如下:
“The Linux legacy-static builds are only recommended for older systems. If you try to run and get a floating point exception, try a legacy-static build. Otherwise you should always use the regular builds.”
本服务器安装的版本为:http://fastdl.mongodb.org/linux/mongodb-linux-i686-static-2.0.4.tgz 2.2 部署
直接解压缩后即可使用,找到解压后的/bin/目录,运行下面的/bin/mongod即可启动服务器,要想mongo和mongod变成常用的全局shell命令,可将这两个命令拷贝到/usr/local/bin目录下 2.3 编写启动配置文件
将下例配置文件保存放置:/etc/mongodb.cnf
#configuration Options for MongoDB
#
# For More Information, Consider:
# - Configuration Parameters: http://www.mongodb.org/display/DOCS/Command+Line+Parameters
# - File Based Configuration: http://www.mongodb.org/display/DOCS/File+Based+Configuration
start Start SCRIPT as a daemon
stop Stop the daemon SCRIPT
stopall Stop all running forever scripts
restart Restart the daemon SCRIPT
restartall Restart all running forever scripts
list List all running forever scripts 4 npm包管理器 4.1 npm测试环境安装其它包的方法
将npm资源库的镜像地址指向局域网的一台机器,如下:
npm config set registry http://10.18.116.43:3000
然后根据npm的日志,将404的文件全部下载部署到局域网的服务器上了。
资源包下载地址:http://registry.npmjs.vitecho.com 4.2 npm常用命令
设置代理(服务器千万不要设)
npm config set proxy=http://proxy.tencent.com:8080
设置镜像地址
npm config set registry http://registry.npmjs.vitecho.com