Dockerfile binary separation deployment LNMP(Centos7)
Dockerfile common instructions:
1. FROM: which image is used to build the imageFor example: FROM centos2. MAINTAINER: name or email address of image MAINTAINERFor example: maintainer sun Qi Ming3. RUN: the shell command to RUN when building the imageFor example:RUN [ "yum","install","httpd"]RUN yum -y install httpd4. CMD: shell command execute ...
Posted by anand_ragav on Sun, 24 Nov 2019 10:39:26 -0800
A perfect solution for sharing web links to wechat friends with icons and summaries
First look at the effect:
I don't like paper clips.
In the past, I only put an invisible picture at the beginning of the web page, but later I found it had no effect.
Now let's start:
Raw materials: GetwxLink
WeChat public address:
Step 1: bind domain name
First login WeChat public platform into the "pub ...
Posted by hermes on Sat, 23 Nov 2019 12:36:23 -0800
Chat rooms with Swoole+React
Front-end separated projects, chat rooms implemented by Swoole+React, the framework structure of the entire project can be referenced, front-end react+react-redux+react-router+react-ant, etc. Background uses easySwoole to implement the middleware (data encapsulation, token verification, signature verification) by itself, and carefully look at t ...
Posted by magmazing on Sat, 23 Nov 2019 01:45:57 -0800
Build Linux:LAMP Environment
Setup of LAMP Environment
Install DNS Server
Install DNS Service
yum install bind -y
Configuration of DNS
Create Forward Resolution
For example, create a forward lookup zone named "lsy.com":
Step 1: Create a lookup zone in the main configuration file/etc/named.conf.
vim /etc/named.conf
listen-on port 53{any ...
Posted by bulgin on Sat, 23 Nov 2019 00:46:29 -0800
Understand how to use JWT and you will be able to implement it with PHP
To implement JWT certification with php, let's first understand what JWT is.What is JWTJWT(json web token) is an open JSON-based standard implemented to pass declarations between network applications.JWT's declarations are typically used to transfer authenticated user identity information between identity providers and service providers in orde ...
Posted by _rhod on Fri, 22 Nov 2019 21:45:57 -0800
[Linux series] Centos 7 installation of PHP
objective
For the following Laravel deployment, this article starts to install PHP.
Set PHP source
Check if the Centos source has PHP.
yum list php*
Take a closer look at the PHP version.
yum info php.x86_64
It can be seen from the above figure that the PHP source version is too low and needs a higher version.
Set up a higher version of the ...
Posted by novicephp on Fri, 22 Nov 2019 08:27:10 -0800
Docker practice - image production
Environmental Science
Installation of docker, gitlab runner and runner binding with gitlab.com will not be covered in detail.
Gitlab, I use gitlab.com
Ubuntu runs gitlab runner and docker containers
Make Dockerfile
Contents of Dockerfile file
The default user of RUN and COPY in this file is root
USER nobody specifies that the operation com ...
Posted by pckidcomplainer on Fri, 22 Nov 2019 02:17:38 -0800
Simple rights management php
Forwarded from https://www.cnblogs.com/shenzikun1314/p/6604867.html#4262295
First, the basic theory to understand is whether the relationship between users, roles and privileges is one-to-many or many-to-many.From this, the table is created.
A user can belong to multiple roles, such as Dunchao.He is Sun Li's husband, his child's father, o ...
Posted by billborric on Thu, 21 Nov 2019 19:49:56 -0800
PHP uses Redis's list command to implement message queuing
1. List command used
command
Effect
lPush
Insert one or more values into the list header
rpoplpush
Pops up the last value of the list, inserts it into the header of another list, and returns the value
lRem
Delete the given value in the list
lIndex
Get values in the list by index
2. Composition of the queue
Name
Duty
Producer
...
Posted by prestonwinfrey on Thu, 21 Nov 2019 11:55:38 -0800
PHP uses Redis's transaction command
1.Transaction command
command
Effect
Return value
watch
Monitor one or more key s
Always OK
multi
Declare the start of the transaction, and subsequent commands will be queued for exec execution in order
Always OK
exec
Execute the command after multi in sequence. If the value of the key monitored by the watch command before multi change ...
Posted by funguse on Thu, 21 Nov 2019 10:42:11 -0800