MongoDB tutorial (17) MongoDB $type operator

Description In this chapter, we will continue to discuss the condition operator $type in MongoDB. The $type operator is based on the BSON type to retrieve the matching data types in the collection and return the results. The types that can be used in MongoDB are as follows: type number Remarks Double 1   String 2   Obje ...

Posted on Sun, 05 Apr 2020 14:31:39 -0700 by sloshire1

Docker deploy nginx service Centos7

centos7 deploys nginx service, maps the local port, simply displays the local static html page, and accesses the local http: / / < local IP >/ 1, Preparations 1. Install docker yum install docker 2. Start docker systemctl start docker 3, Download nginx image docker pull nginx 4. Configu ...

Posted on Sun, 05 Apr 2020 10:01:13 -0700 by thelinx

Using brew to install nginx and configure

Installation process brew is used here to install the software. install brew install nginx View the installation information (often used, such as viewing the installation directory, etc.) sudo brew info nginx After installation, it mainly depends on where brew installed nginx. The default is to install it to / usr/local/etc/nginx/nginx.c ...

Posted on Sun, 05 Apr 2020 06:05:43 -0700 by doremi

ajax+php file upload with progress bar

Theoretically, there are many such file / image upload plug-ins, but in the process of use, there will be various problems, such as compatibility problems, background problems ~ ~, etc., so since I can't use others' wheels well, I'll build one by myself. In this paper, jq.ajax and php are used to realize the upload function. Th ...

Posted on Sat, 04 Apr 2020 22:42:20 -0700 by VBAssassin

Using soap WebService in Yii2

Using soap WebService in yii2 is very simple. Some people have provided relevant extensions for us to use. Of course, we can also write by ourselves. Here is how to use soap in yii2 with extensions written by others Note: the prerequisite for normal use of soap is to remember to open the soap extension of PHP 1. First install the SOAP Server Ex ...

Posted on Sat, 04 Apr 2020 00:34:42 -0700 by sunnyk

JS realizes the left and right, up and down movement function of list data

This article mainly introduces the JS implementation to add the data of the selected items in the left drop-down list to the right, which supports multi selection movement. Two schemes are provided in this paper: one is to copy the selected items on the left to the right without changing the data on the left, and preven ...

Posted on Fri, 03 Apr 2020 23:36:59 -0700 by jesse26

Using memcache to optimize wordpress and speed up

Environmental Science: A local development environment One is deployed in the virtual machine (the virtual machine is installed with memcache cache), and then the optimized version is compared with the local development environment wordpress version: 4.9.5 PHP: version 5.6 1. First, in the functions.php file of the topic, add the following ...

Posted on Fri, 03 Apr 2020 19:01:07 -0700 by recurzion

centos installs nginx and configures load balancing

 1. Install nginx Installation tutorial, refer to: http://mp.weixin.qq.com/s/RVaRlRpHqZRjCaXGmOlfKw 2. Configuration of reverse agent Modify the contents of nginx.conf file in the conf subdirectory under the deployment directory location / {                 #Set the host header and the real address of the client s ...

Posted on Fri, 03 Apr 2020 14:27:54 -0700 by Okami

CentOs7 builds PHP environment

Prompt: wget Download URL prompt: unable to establish SSL connection, do the following tutorial operations https://blog.csdn.net/xinghun_4/article/details/50500331 reboot the virtual machine One click installation of gcc yum groupinstall "Development Tools" "Server Platform Development" -y Yum add Epel source ...

Posted on Fri, 03 Apr 2020 10:36:58 -0700 by pokemon

AngularJS initiates a $http.post request

AngularJS initiates a $http.post request The code is as follows: $http({ method:'post', url:'post.php', data:{name:"aaa",id:1,age:20} }).success(function(req){ console.log(req); }) 1 2 3 4 5 6 7 At this time, you will find that you cannot receive the returned data, and the result is null, because ...

Posted on Fri, 03 Apr 2020 09:41:34 -0700 by NoobPHP