Using Laravel to integrate JWT certification to develop RestfulApi

API is a good choice when using cross platform applications. In addition to the website, your product may also have Android and iOS applications. In this case, the API is just as good because you can write different front ends without changing any back-end code. When using the API, just click GET, POST or other types of requests with some param ...

Posted by beachcomber on Sat, 09 May 2020 01:20:36 -0700

lnmp build (Nginx1.12.1; MySQL 5.7.20; php7.2.0)

Install dependent packages: #yum install gcc bison bison-devel zlib-devel libmcrypt-devel mcrypt mhash-devel openssl-devel libxml2-devel libcurl-devel bzip2-devel readline-devel libedit-devel sqlite-devel libpng-devel libjpeg-devel freetype freetype-devel Create a WW user: #groupadd www #useradd -g www -s /sbin/nolo ...

Posted by ChrisDarl on Fri, 08 May 2020 11:18:51 -0700

Define the person class and its subclasses, and design, define, and instantiate classes (instances) as required

problem Design a person class with the following conditions: 1) Define the protected attribute: name (name), age (age), sex (gender) 2) Define static attribute: num (used to calculate the number of instantiated persons) 3) Define a constructor that outputs "I am a person" when an object is created and adds 1 to num; 4) Define a dest ...

Posted by moise on Fri, 08 May 2020 10:33:34 -0700

Detailed explanation of role test of Ansible, an automatic operation and maintenance tool

Detailed explanation of Ansible Roles and practical cases   Host planning   Add user account explain: 1. Login account used by operation and maintenance personnel; 2. All businesses are placed in the "home directory of yun users" under / app / to avoid misplacement of business data; 3. This user is also used by ansible, because alm ...

Posted by chard on Fri, 08 May 2020 06:53:59 -0700

ThinkPHP6 events and multiple applications

Event   1. Events are similar to middleware, but events are more accurately positioned and more detailed business scenarios; 2. Event definable: event class, event listening class and event subscription class; 3. We first create a test event class: TestEvent.php, and manually create a test class; public function __construct() { //Register l ...

Posted by why2k on Fri, 08 May 2020 03:58:55 -0700

Quick upgrade of ZABBIX version 5.0

Zabbix 5.0 has added many new functions, such as vertical menu, hidden menu, test items in user interface, limit agent check, find and replace preprocessing step ES7 support, etc.. Let's deploy and experience Zabbix 5.0     Upgrade Notice     Upgrade requirements PHP version PHP version has been upgraded from minimum 5.4.0 to 7.2.0 Database ver ...

Posted by dmcentire on Thu, 07 May 2020 23:02:03 -0700

YII2.0 access to Alibaba cloud OSS object storage

After searching for half a day's data, we finally managed to connect YII2.0 to OSS object storage. It is assumed that you have installed YII2.0, and you have installed compose. Step 1: install the OSS object component (i.e. the PHP API of OSS) console, enter the root directory of YII2.0, input: composer require aliyunc ...

Posted by webosb on Thu, 07 May 2020 08:59:56 -0700

Recovery linux savings: architecture building lnmp (configuration)

nginx virtual host vim /usr/local/nginx/conf/nginx.conf Add include vhost/*.conf; mkdir /usr/local/nginx/conf/vhost vim /usr/local/nginx/conf/vhost/aaa.com.conf - virtual host configuration file server { listen 80 default_server; (Yes default_serve Is the default virtual host) server_name aaa.com; (Define site name) index ...

Posted by jonahpup on Tue, 05 May 2020 14:19:09 -0700

Implementation of PHP+MySQL paging principle

Function introduction: including previous page, next page, first page, last page, jump page and other functions. Code message: turn complexity into simplicity, and you will be enlightened. Running screenshot:    Key steps: After the database is created, dozens of data are inserted to facilitate testing. CREATE TABLE `page` ( `ID` int(10) ...

Posted by the_damo2004 on Tue, 05 May 2020 09:30:37 -0700

Easysoole uses configuration files in *. ini format

brief introduction This article takes you through how to use ini configuration files in easysoole. Advantages and disadvantages of ini Advantages: linear, simple, concise and convenient Disadvantages: weak data configuration of complex types directory structure . ├── App │ ├── HttpController │ │ └── Productor.php │ ├── Process │ ...

Posted by Syrehn on Tue, 05 May 2020 08:35:30 -0700