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:
#useradd -g www -s /sbin/nolo ...
Posted by ChrisDarl on Fri, 08 May 2020 11:18:51 -0700
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 Ansible Roles and practical cases
Add user account
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
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
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
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
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
nginx virtual host
Add include vhost/*.conf;
vim /usr/local/nginx/conf/vhost/aaa.com.conf - virtual host configuration file
listen 80 default_server; (Yes default_serve Is the default virtual host)
server_name aaa.com; (Define site name)
Posted by jonahpup on Tue, 05 May 2020 14:19:09 -0700
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.
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
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
│ ├── HttpController
│ │ └── Productor.php
│ ├── Process
Posted by Syrehn on Tue, 05 May 2020 08:35:30 -0700
In fact, there are many plug-ins for file upload, but what we do now requires to use as few plug-ins as possible, so I wrote it myself.
I've also written about file processing with node before. This time, I'll try it in php.
<meta http- ...
Posted by asd on Tue, 05 May 2020 06:05:32 -0700