Recently, because of the work requirements, automatic test scripts are being written, the main purpose is to test the integrity of code functions. However, there are always problems when using SSH Library for remote SSH interaction. For example, when encountering the interaction that requires password input, it is always unsuccessfu ...
Posted on Wed, 11 Dec 2019 08:22:32 -0800 by Lukey
First create the key pair locally
ssh-keygen -f /root/.ssh/id_rsa -N "" -b 2048 #This is a non interactive creation
If there is already a key, sometimes an error related to the permission will be reported. You need to change the permission of the key to 600
Then copy the contents of the public key
cat /root/.s ...
Posted on Tue, 10 Dec 2019 11:23:25 -0800 by Mastermind
Create a git user and user group on the server
sudo adduser git
Set the corresponding information according to the prompt
Set the permissions of git home directory to git, otherwise you will not be able to access it in the future
sudo chown -R git:git /home/git/
Use git clone --mirror to clone the project on github to local:
# Create a gitmirro ...
Posted on Tue, 10 Dec 2019 04:06:39 -0800 by appeland
Objective: after the web program is pushed to gitee, it is expected to be automatically pushed to Alibaba cloud server to realize synchronous data update between the local and server
Learn from the methods of pagoda Forum: https://www.bt.cn/bbs/thread-5348-1-1.html
Server environment: CentOS 7.3, Nginx
Project directory / ww ...
Posted on Mon, 09 Dec 2019 17:16:01 -0800 by kilbey1
Detailed explanation of scp command of Linux command
I. Introduction to scp
The scp command is used to copy files and directories between different hosts.
scp is the abbreviation of secure copy, which is a remote file copy command based on ssh protocol.
scp needs to send secret key to the corresponding node in order to copy without secret.
Posted on Mon, 09 Dec 2019 05:51:11 -0800 by phpprog
1. Script example of recursively listing files in directory
To list the files in the directory, you can do the following: os.listdir()
In : import os
In : os.listdir('/root')
Posted on Tue, 03 Dec 2019 08:46:46 -0800 by eon201
I. Basic preparation
Refer to the document 002.Ceph installation and deployment to deploy a basic cluster;
Add a new node host name and IP in the deploy node to add resolution:
1 [root@deploy ~]# echo "172.24.8.75 cephclient" >>/etc/hosts
Configure domestic yum source:
1 [root@cephclient ~]# yum -y update
2 [ ...
Posted on Sat, 30 Nov 2019 11:58:24 -0800 by verN
1. Creation method of Docker imageIn addition to docker's core technology, docker mirroring is also a standard format for application publishing.A complete docker image can support the operation of a docker container. After entering a customized container during the entire use of the docker, it can operate in the container. The most common ope ...
Posted on Thu, 28 Nov 2019 10:05:17 -0800 by tinyang
This paper mainly introduces the following five points:
I. Composer installation
II. SSH settings
III. Git installation
IV. Laravel deployment
V. upload GitHub
I. Composer installation
# cd /usr/local/bin
php -r "copy('https://install.phpcomposer.com/installer', 'composer-setup.php');"
php -r "un ...
Posted on Tue, 26 Nov 2019 06:07:52 -0800 by RealDrift
There is a previous article: On MySQL Cluster High Availability architecture . After that, I have been asked by many small partners in the background or other channels when relevant in-depth configuration management articles will be published. Therefore, brother migrant workers will also sort out and publish the previous architectures one by o ...
Posted on Sun, 24 Nov 2019 10:46:37 -0800 by jikishlove