The detailed steps of implementing queue in php

What is a queue? Queue is a kind of special linear table. It only allows deletion at the front end of the table, which can be called front, and insertion at the back end of the table, which can be called rear. Like stack, queue is a linear table with limited operation. The difference between queue and stack is that queue follows the principle ...

Posted on Thu, 09 Jan 2020 21:57:13 -0800 by irishprogrammin

1.9 NGINX-HTTP configuration optimization - reverse generation of FastCGI (NGINX+PHP)

1.9 HTTP configuration optimization - reverse generation of FastCGI (NGINX+PHP) As a WEB server, NGINX only has the ability to parse static pages, and the ability to parse dynamic pages can only be realized with the help of external programs (PHP, Tomcat, etc.). PHP is a PHP parsing platform for running scripts written i ...

Posted on Mon, 06 Jan 2020 16:24:53 -0800 by stereo

Ubuntu 16.04 install redis

Install redis apt-get installl redis-server Install PHP redis apt-get installl php-redis Check redis process ps -aux|grep redis Accessing redis basic operations from the command line root@ubuntu16:~# redis-cli # View all key lists 127.0.0.1:6319>keys * (empty list or set) # Add a record key1 127.0.0.1:6379> set key1 "hello w ...

Posted on Mon, 06 Jan 2020 06:48:33 -0800 by xyn

PHP+swoole to realize the function of chatting and mass sending

This article mainly introduces PHP+swoole to realize the function of chatting and mass sending. I hope it can be helpful for you if you are interested in it. php code: $serv = new swoole_websocket_server("127.0.0.1",3999); //Basic settings of service $serv->set(array( 'worker_num' => 2, 'reactor_num'=>8, 'task_worker_num'=>1, ...

Posted on Mon, 06 Jan 2020 03:35:49 -0800 by kaitan

(8) PHP dynamic expansion module installation

PHP dynamic expansion module installation Now our PHP has been installed. At this time, we found that there is a lack of a module. We can't recompile PHP. So this article mainly discusses how to install PHP module with dynamic expansion module See which modules are loaded in php /usr/local/php/bin/php -m Install a redis extension module of p ...

Posted on Sun, 05 Jan 2020 18:56:38 -0800 by jawinn

Use of Android Retrofit

Step one:   Dependent package import: compile 'com.squareup.retrofit2:retrofit:2.2.0' compile 'com.squareup.okhttp3:okhttp:3.4.1' compile 'com.squareup.retrofit2:converter-gson:2.0.2' Network permissions: <uses-permission android:name="android.permission.INTERNET"/>     The second step: Create interf ...

Posted on Sun, 05 Jan 2020 15:59:51 -0800 by razorsedgeuk

Nginx Installation Configuration Anti-theft Chain and Depth Optimization

1. Optimization before compilation and installationOptimizations prior to compilation and installation are primarily used to modify program names, and so on, by changing the source code to hide the software name and version number. Download the required source packages I provided: https://pan.baidu.com/s/1tyS3GL0W2kcQGsdfwc3B1w Extraction code ...

Posted on Sun, 05 Jan 2020 15:45:08 -0800 by php_newB

CPP design mode learning

Source address: https://www.ev0l.art/index.php/archives/20/ Memo mode A pattern that records the snapshot state of another class within one class. It can be used to jump back at the right time There are three steps in the design memo: Node of design record, storage record2. Storage of design records: vector list map set can make the list ...

Posted on Sun, 05 Jan 2020 14:53:04 -0800 by southofsomewhere

Common design patterns of php

Singleton pattern (ensure that a class is instantiated only once and can be instantiated by itself) Factory mode (replaces new operation) Strategy pattern (use different methods to achieve the same goal) Observer mode (when one object changes, other objects will trigger corresponding operations) Adapter pattern (encapsulating different methods ...

Posted on Sat, 04 Jan 2020 02:18:18 -0800 by frog_

Configuring nginx reverse agent tomcat under windows

Nginx download official address: http://nginx.org/en/download.html The directory structure after downloading and decompressing is as follows Common commands: nginx -v view nginx version Start nginx start nginx command nginx -s reload after modifying the configuration file nginx -s stop stop immediately Nginx-s quit stops ...

Posted on Fri, 03 Jan 2020 10:36:36 -0800 by hurricane