CentOS 6.9 install mongodb and PHP mongodb extensions

Notes:CentOS6.9yum install mongodb and PHP mongodb extensions1. Installation dependency yum install libcurl openssl 2. Download and unzip wget -c https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-4.0.5.tgz tar -zxvf mongodb-linux-x86_64-4.0.5.tgz 3. Mobile mongodb mkdir -p /usr/local/mongodb mv mongodb-linux-x86_64-4.0.5/* /usr/local/mongod ...

Posted by icm on Sun, 01 Dec 2019 21:01:27 -0800

The realization of PHP message board

The example of this paper shares the realization idea of php message board for your reference. The specific content is as follows:1. Create a file name to store message information2. Get the data in the form to a variable3. Exist when judging documents4. Write to the file. Before you open the file, choose the access method and close the file5. ...

Posted by gooman on Sun, 01 Dec 2019 18:22:24 -0800

Analysis of the php program configuration of Kodex Explorer open source network disk

config/setting_user.php append content (all of the following, be careful not to use Chinese quotation marks, double quotation marks and semicolons) //[specify multiple languages and keep Chinese only] $GLOBALS['config']['settings']['language'] = 'zh-CN'; //[automatically create a new directory when creating a user-defined group] $GLOBALS['conf ...

Posted by kingconnections on Sun, 01 Dec 2019 17:48:22 -0800

LNMP + haproxy + preserved load balancing - basic service preparation

Log service Modify the log service configuration and restart the log service; vim /etc/rsyslog.conf Edit the system log configuration to specify the included profile path and rules: $IncludeConfig /etc/rsyslog.d/*.conf Create a separate configuration file for haproxy; vim /etc/rsyslog.d/haproxy.conf Edit the configuration file as follows: ...

Posted by nadz on Sun, 01 Dec 2019 13:03:36 -0800

One way linked list

What is a one-way linked list A linked list is a structure that stores data in a linked way. It does not need continuous storage space. The data in the linked list is represented by nodes. Each node is composed of elements (storage data) and pointers (pointing to subsequent nodes). One way linked list (also called single linked list) is the sim ...

Posted by Ace_Online on Sun, 01 Dec 2019 08:34:20 -0800

Performance comparison between clone and new in PHP

Clone and new should not be put together for comparison. Their functions are different. But there may be some scenarios where you can use clone or new. Which one should we choose at this time? I have written two tests, the first is to declare an empty class, and the second is a class with construction methods and properties. In addition, I adde ...

Posted by venradio on Sun, 01 Dec 2019 08:27:46 -0800

Installing RabbmitMQ+PHP RabbmitMQ application under centos

You may be thinking about data distribution, non blocking jobs, or message push. Or you want to publish / subscribe, asynchronous tasks, work queues. All of these patterns are part of message queuing. 1. Install RabbmitMQ wget https://www.rabbitmq.com/releases/rabbitmq-server/v3.6.8/rabbitmq-server-3.6.8-1.el6.noarch.rpm Get rpm, and you will f ...

Posted by tmed on Sat, 30 Nov 2019 16:30:32 -0800

global2.min.css common style version 2.0

File link ####global2 adds the following common styles relative to global 1. Added the search box style file (search box) <section class="search-box"> <input class="search-text" type="search" id="myInput" value="" placeholder="Search expert"> <button type="submit" class="search-btn"><i class="icon-search" ...

Posted by dpiland on Sat, 30 Nov 2019 13:20:20 -0800

The implementation of PHP's simple jump prompt

In PHP development, especially in MVC framework or projects, there are many jump situations, such as: jump after login success or failure, etc. Based on the MVC framework development, the following is an example: In the basic controller class: controller.class.php 1 <?php 2 3 /** 4 * Basic controller class 5 */ 6 class Con ...

Posted by BMurtagh on Sat, 30 Nov 2019 13:15:57 -0800

Get province and city information from address string

Demand: From the address filled in manually, analyze the provincial and urban information thinking Use Baidu map apijust/inverse GeocodingPS: although Baidu map provides Location search , but it needs to be transferred to the Administrative Region According to the positive geocoding service interface, the address is converted into latitude and ...

Posted by daloss on Sat, 30 Nov 2019 07:21:05 -0800