Month: May 2016

  • MongoDBPHP 扩展

    本教程将向大家介绍如何在Linux、window、Mac平台上安装MongoDB扩展。 Linux上安装 MongoDB PHP扩展 在终端上安装 你可以在linux中执行以下命令来安装MongoDB 的 PHP 扩展驱动 $ sudo pecl install mongo 使用php的pecl安装命令必须保证网络连接可用以及root权限。 安装手册 如果你想通过源码来编译扩展驱动。你必须手动编译源码包,这样做的好是最新修正的bug包含在源码包中。 你可以在Github上下载MongoDB PHP驱动包。访问github网站然后搜索”mongo php driver”(下载地址:https://github.com/mongodb/mongo-php-driver),下载该源码包,然后执行以下命令: $ tar zxvf mongodb-mongodb-php-driver-<commit_id>.tar.gz$ cd mongodb-mongodb-php-driver-<commit_id>$ phpize$ ./configure$ sudo make install 如果你的php是自己编译的,则安装方法如下(假设是编译在/usr/local/php目录中): $ tar zxvf mongodb-mongodb-php-driver-<commit_id>.tar.gz$ cd mongodb-mongodb-php-driver-<commit_id>$ /usr/local/php/bin/phpize$ ./configure –with-php-config=/usr/local/php/bin/php-config$ sudo make install 执行以上命令后,你需要修改php.ini文件,在php.ini文件中添加mongo配置,配置如下: extension=mongo.so 注意:你需要指明 extension_dir 配置项的路径。 window上安装 MongoDB PHP扩展 Github上已经提供了用于window平台的预编译php mongodb驱动二进制包(下载地址:https://s3.amazonaws.com/drivers.mongodb.org/php/index.html),你可以下载与你php对应的版本,但是你需要注意以下几点问题:…

  • Java7 jdk7 下载地址安装

    要有个oracle 的账号 下载地址: http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html     选择相应操作系统版本的文件下载即可。

  • Creating a MongoDB Replication Set on CentOS 6.4

    可以在linode官网购买服务器进行配置Mongodb 集群的安装 centos6.4 MongoDB is an open-source non-SQL database engine. MongoDB is scalable and an alternative to the standard relational database management system (RDBMS). A replication set is used for redundancy and to provide access to your data in the event of a node failure. Before installing MongoDB, it is assumed that you have followed…

  • Mongodb 安装方法

    The name MongoDB was derived from Humongous DB. It is an open source NoSQL database. MongoDB is developed and commercially supported by the company 10gen. The focus of the MongoDB is on scalability and performance. MongoDB is a schema-free document-oriented database. This stores data as JSON objects. Unlike traditional SQL database, you don’t need to…

  • Setup VSFTPD Server with Virtual Users On CentOS, RHEL, Scientific Linux 6.5/6.4/6.3

    Well, in this article we let us setup vsftpd server with virtual users. ie. the users who don’t have local account in the FTP server itself can login to FTP server. I assume that you already have installed and configured FTP server. If didn’t, visit to the above mentioned link to setup FTP server. Install…

  • 用yum查询想安装的软件

    1.使用YUM查找软件包 命令:yum search~ 2.列出所有可安装的软件包 命令:yum list 3.列出所有可更新的软件包 命令:yum list updates 4.列出所有已安装的软件包 命令:yum list installed 5.列出所有已安装但不在Yum Repository 內的软件包 命令:yum list extras 6.列出所指定软件包 命令:yum list ~ 7.使用YUM获取软件包信息 命令:yum info ~ 8.列出所有软件包的信息 命令:yum info 9.列出所有可更新的软件包信息 命令:yum info updates 10.列出所有已安裝的软件包信息 命令:yum info installed 11.列出所有已安裝但不在Yum Repository 內的软件包信息 命令:yum info extras 12.列出软件包提供哪些文件 命令:yum provides~