Viewing and shutting down Selinux
Note: This article is not an original article, which is transferred from the following:
View and setup of Selinux
1. Check SELinux status
1.1 getenforce
The getenforce command is a combination of the words get (get) and enforceto view the selinux status, as opposed to the setenforce command.
The setenforce command is a combination of th ...
Posted by unixmiah on Wed, 15 Apr 2020 10:33:34 -0700
Recovery of linux: keepalived+lvs to achieve high available load balancing
The complete architecture requires two servers (the role is dir) to install the Keepalived tool respectively, in order to achieve high availability, but Keepalived also has load balancing function, so only one Keepalived can be installed in this use.
Keeping alive has the function of ipvsadm built in, so you don't need to install ipvsadm packa ...
Posted by Squiggles on Tue, 14 Apr 2020 09:36:45 -0700
Redis sentinel mode to realize master-slave failover
Redis Sentinel is a distributed system. You can run multiple Sentinel processes in one architecture. These processes use the gossip protocols to receive information about whether the primary server is offline, and use the agreement protocols to decide whether to perform automatic failover, And which slave server to choose as the new master serv ...
Posted by adnan1983 on Tue, 14 Apr 2020 00:10:15 -0700
Ubuntu TFTP service building and exception maintenance
TFTP is a file transfer protocol similar to FTP, but it does not require user authentication and cannot list directories. The TFTP server always listens for requests from PXE clients on the network. When it detects that PXE client requests PXE service in the network, it will provide network data package containing boot ...
Posted by Vermillion on Thu, 09 Apr 2020 11:03:26 -0700
Run / bin/kibana to report fat error: listen eaddrnotavail 123.57.251.57:5601
Previous picture
FATAL Error: listen EADDRNOTAVAIL 123.57.251.57:5601
The configuration file is configured as follows:
[root@head-kib ~]# cd /usr/local/kibana-6.5.4-linux-x86_64/config/
[root@head-kib config]# vim kibana.yml
server.port: 5601
server.host: "123.57.251.57"
elasticsearch.url: "http://192.168.246.234:9200 "ාes node
kibana.in ...
Posted by blackcode on Mon, 06 Apr 2020 08:45:55 -0700
mongoDBmongoDB Replica Set Actual
mongoDB Replica Set Actual Warfare
background
Features of a mongoDB single server:
- Risk of data loss
- Single server cannot be highly available
Features of the mongoDB replica set:
-High Availability Architecture to Prevent Data Loss
- Keep multiple replicas synchronized and consistent
- The mongodb replica set switches automatically when ...
Posted by Cheap Commercial on Sat, 04 Apr 2020 19:15:46 -0700
Create Maven private warehouse with Nexus
Go to http://www.sonatype.org/nexus/go/
Download nexus-2.14.5-02-bundle.tar.gz
Create the nexus directory in the server and download the Nexus (upload it to the oss first and then download it in the form of wget)
[root@iZm5e0c5bxd15k4yfdiirsZ opt]# mkdir nexus
[root@iZm5e0c5bxd15k4yfdiirsZ opt]# ls
apache-tomcat-8.0.30 jdk1.8.0_11 nexus r ...
Posted by rupertbj on Sat, 04 Apr 2020 09:42:49 -0700
kibana starts reporting an error Elasticsearch cluster did not respond w
kibana start error
Elasticsearch cluster did not respond with license information
This error reporting environment is an ES cluster composed of four elastic search servers. The versions are all elk7.1.0. There are many online documents for specific installation steps.Use cdh1 as the master, cdh2, cdh3, and cdh4 as the datanode nodes.
After the ...
Posted by LAMP on Sat, 04 Apr 2020 02:01:12 -0700
helm deployment for kubernetes
Tags (space delimited): kubernetes series
One: What is Helm
2: Helm deployment
One: What is Helm
Before using helm, deploying applications to kubernetes requires a cumbersome process of deployment, svc, and so on.Moreover, as many projects are microserviced, deployment and management of complex applications in containers becomes mor ...
Posted by vanderlay on Thu, 02 Apr 2020 23:47:02 -0700
Nginx access log, log cutting, static file not logging and expiration time of LNMP schema (3)
1. Nginx access log
1.1 log format
[root@host ~]# vim /usr/local/nginx/conf/nginx.conf / / search for log \
... ...
log_format combined_realip '$remote_addr $http_x_forwarded_for [$time_local]'
' $host "$request_uri" $status'
' "$http_referer" "$http_user_agent"';
#Combined? Realip is the log name
# The contents of the log are followed ...
Posted by balkan7 on Wed, 01 Apr 2020 22:57:44 -0700