LNMP Architecture - Nginx user authentication
A virtual host in nginx for a profile
Create a new virtual host profile
[root@dl-001 default]# vim /usr/local/nginx/conf/vhost/test.com.conf / / create a virtual host
server
{
listen 80;
server_name test.com;
index index.html index.htm index.php;
root /data/wwwroot/test.com;
location /
{
...
Posted by Carlo Gambino on Sun, 03 May 2020 10:04:17 -0700
Analysis and configuration verification of TLS encrypted communication for Docker security
The basic concept of TLS
TLS (Transport Layer Security), TLS is a protocol built on the TCP protocol of the transmission layer, serving the application Layer. Its predecessor is SSL (Secure Socket Layer), which realizes the function of encrypting the message of the application layer and then delivering it to TCP for transmission.
TLS protocol ...
Posted by guoxin on Sun, 03 May 2020 09:09:02 -0700
VIM+Vundle development environment
VIM+Vundle development environment
Environment construction
Upgrade apt get
Command line execution
apt-get -u dist-upgrade
Install git
Command line execution
sudo apt-get install git
Install vim
Command line execution
sudo apt-get install vim
Install vundle
Command line execution
git clone https:/ ...
Posted by jmcc on Sun, 03 May 2020 02:27:23 -0700
Mycat's database primary key self growth (local timestamp) - yellow Tong
In the local time mode, the policy ID automatically generated by ID= 64 bit binary (42 (MS) + 5 (machine ID) + 5 (business code) + 12 (repeated accumulation). The local time stamp mode is mycat's default, so when you configure it, you need to confirm whether the sequnceHandlerType configuration in your server.xml is 2. To realize the local ...
Posted by amitkrathi on Sat, 02 May 2020 13:08:23 -0700
Kali 2017.3 open VNC remote desktop login
Turn on Remote Desktop login by enabling screen sharing. After turning on, you need to turn off encryption. Otherwise, you will not be able to connect. Closing encryption can be done by using the system configuration tool dconf. So install dconf editor first.
Update source and install system configuration tool (cannot install without updating s ...
Posted by xfezz on Fri, 01 May 2020 10:16:12 -0700
Nginx access log, nginx log cutting, nginx does not record static files
Access log for Nginx
The log format of Nginx is in the main configuration file of Nginx (/ usr/local/nginx/conf/nginx.conf)
[root@shuai-01 vhost]# vim /usr/local/nginx/conf/nginx.conf
You can change the log format name to shaui
The meaning of Nginx log field
Define the format of the log in the main configur ...
Posted by Devine on Fri, 01 May 2020 03:42:12 -0700
Hbase API create table error record for Docker container deployment cluster
Hbase API create table error record
Demo method:
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.HColumnDescriptor;
import org.apache.hadoop.hbase.HTableDescriptor;
import org.apache.hadoop.hbase.TableName;
import org.apache.hadoop.hbase.client.Admin;
import org.apa ...
Posted by fusionxn1 on Thu, 30 Apr 2020 02:57:56 -0700
068. Using DRF view set of Python framework Django
One view atlas and the use of routing
Using the view set ViewSet, you can place a series of logically related actions into a class:
list() provides a set of data
retrieve() provides a single data
create() create data
update() to save the data
Destroy() delete data
The ViewSet view set class no longer implements methods su ...
Posted by NorthWestSimulations on Tue, 21 Apr 2020 22:30:51 -0700
Configuration and beautification of Ubuntu after installation
Configuration and Beautification after Ubuntu Installation (2)
The previous article described a series of basic configurations after the installation of ubuntu, which are already available for daily use. This article describes the installation of IDE and some other configurations.
1. Install SSR
Download SSR Client
git clone https://githu ...
Posted by tbare on Tue, 21 Apr 2020 09:23:20 -0700
Minio related configuration and problem record
First of all, Minio has written clearly and in Chinese on its website. https://docs.min.io/cn/
In the project, the OSS function needs to be replaced and implemented. The code corresponding to the original public cloud implementation has been encapsulated into a tool class, and the factory method mode is adopted. As long as the mini interface a ...
Posted by friedice on Mon, 20 Apr 2020 03:58:05 -0700