ansible -- Usage and common modules
1. Install ansible package
[root@centos8 ~]yum -y install ansible
2. Modify profile
###Purpose: to cancel the error (yes/no) that occurs every time you connect to the remote host
[root@centos8 ~]#vim /etc/ssh/ssh_config
#Modify the following line
StrictHostKeyChecking no
perhaps
[root@centos8 ~]#vim /etc/ansible/ansible.cfg
Uncomment the ...
Posted by galayman on Fri, 03 Dec 2021 22:26:28 -0800
Go + or shit-- Run a simple Grpc
Run a simple Grpc
Previously, we successfully installed the Go + running environment. Next, we run a simple Grpc to learn how to reference packages.
Dependent package installation
For references to dependent libraries, Go + has made many optimizations to make the code easier to write. Just like when printing, Go needs to import "f ...
Posted by dennissanche on Mon, 29 Nov 2021 01:34:10 -0800
Weekly leetcode - 235/236/53/NC102/NC103
leetcode - 235. Nearest common ancestor of binary search tree
Given a binary search tree, find the nearest common ancestor of two specified nodes in the tree.
Baidu Encyclopedia defines the nearest public ancestor as: "for two nodes p and q with root tree T, the nearest public ancestor is expressed as a node x, which satisfies that x ...
Posted by peeter_talvistu on Sat, 20 Nov 2021 20:16:00 -0800
linux privilege maintenance (partial)
Modify permissions:
Add Account:
Add normal users:
useradd guest;echo 'guest:123456'|chpasswd
Add root user (mentioned above)
echo "test:advwtv/9yU5yQ:0:0:,,,:/root:/bin/bash" >>/etc/passwd
Account: test
Password: password@123
It's easy to add an account to maintain permissions.
Defense method:
Query Privileged User Privi ...
Posted by bubbadawg on Fri, 19 Nov 2021 12:48:45 -0800
Steps to build zookeeper cluster and solutions to problems
1. Preparation before construction
1.1 ssh password free login configuration method
Prepare at least three host servers. For example, my host servers are:
Server nameIPServer master81.68.172.91Server slave1121.43.177.90Server slave2114.132.222.63
First, generate the secret key on the master server. The command to generate the secret key ...
Posted by steve012345 on Mon, 08 Nov 2021 06:41:09 -0800
Remote login service in Linux 2021-11-04
1, Openssh features
1. Purpose of sshd service
effect: You can open the secure shell in the remote host through the network
Secure shell > > > SSH ## client
Secure shell daemon > > > sshd ## server
2. Installation package
openssh-server
3. Master profile
/etc/ssh/sshd_conf
4. Default port
port 22
5. Client commands ...
Posted by my_mind on Thu, 04 Nov 2021 10:26:44 -0700
An article on understanding struts 2 + hibernate + spring and ssh integration framework
This article will explain based on Maven project. If you don't understand maven, you can refer to the previous article published
Rely on the downloaded Maven website: https://mvnrepository.com/
Struts2
What is struts?
A web application framework designed based on mvc pattern is an upgraded version of struts 1, which ...
Posted by Akenatehm on Sun, 31 Oct 2021 02:41:41 -0700
Linux notes from madness
Linux
Walking into Linux system
Generally speaking, there are three ways for users to log in
Command login
ssh login
Graphical interface login
The highest authority account is root, which can operate for everything!
Shut down
Shutdown command
shutdowm
sync Synchronize data from memory to hard disk
shutdown Shutdown command, you ca ...
Posted by Nexus10 on Wed, 27 Oct 2021 23:10:38 -0700
SSH Remote Service
1, SSH service
1.1 SSH Foundation
1.1.1 what is an SSH server?
SSH (Secure Shell) is a secure channel protocol, which is mainly used to realize the functions of remote login and remote replication of character interface;SSH protocol encrypts the data transmission between the communication parties, including the user password entered when ...
Posted by Paul Ferrie on Mon, 11 Oct 2021 18:09:48 -0700
Rsync configuration and Application
An introduction to rsync
rsync is a common Linux application for file synchronization. It can synchronize files between local computers and remote computers, or between two local directories (but it does not support synchronization between two remote computers). It can also be used as a file copying tool instead of cp and mv commands. r refers ...
Posted by rockstar_tom on Mon, 11 Oct 2021 12:23:37 -0700