Kubernetes 1.12.1 quick upgrade

Kubernetes 1.12.1 quick upgrade includes three main steps: upgrade kubedm / kubectl / kubelet version, pull image, upgrade kubernetes cluster. 1. Upgrade kubeadm/kubectl/kubelet version apt install kubeadm=1.12.1 kubectl=1.12.1 kubelet=1.12.1 To view the container image version of this version: kubeadm config images list The output is as ...

Added by chetan1 on Thu, 19 Dec 2019 16:25:01 +0200

w command of Linux command explanation

w command of Linux command explanation 1. Order details ··· NAME w - Show who is logged on and what they are doing. The w command is used to show who is logging in and what they are doing. DESCRIPTION w displays information about the users currently on the machine, and their processes. The header shows, ...

Added by Dorin85 on Fri, 13 Dec 2019 17:50:03 +0200

Linux Background Run Task nohup Combination & Usage and How to Find Processes Accurately and kill Background Task Practice

Preface Why nohup should be used with & I don't know if you've thought about its small size. Many other people will praise the use of screen, but I won't expand it if the actual production environment is limited.The main problem encountered this time was that crontab was used to call several different nohup background execution tasks. Howev ...

Added by blmg911 on Thu, 12 Dec 2019 05:00:04 +0200

Log interception of nginx and warehousing practice of shell script

Implemented front end monitoring Understand business access and user distribution Monitor the stability of business customization key nodes (payment, im message, etc.) Monitor business system exceptions (exception details, exception occurrence environment) Monitor business performance (future) Alarm, mail task (future) Written in front This ...

Added by stuworx on Wed, 11 Dec 2019 11:39:42 +0200

tcp protocol and packet sticking in network programming

tcp protocol and socket in network programming I. single supplement Several ways to realize single column #Mode 1: classmethod # class Singleton: # # __instance = None # # @classmethod # def singleton(cls): # # if not cls.__instance: # cls.__instance = cls() # # return cls.__instance # # obj1 = Singlet ...

Added by nawhaley2265 on Mon, 09 Dec 2019 16:12:26 +0200

Chapter 14 exercise of python core programming 2

14-3. Execution environment. Create scripts to run other Python scripts. 1 if __name__ == '__main__': 2 with open('test.py') as f: 3 exec(f.read())  14-4. os.system(). Call OS. System() to run the program. Additional question: migrate your solution to subprocess.call(). 1 import os 2 from subprocess import call 3 ...

Added by jk11uk on Mon, 09 Dec 2019 10:18:01 +0200

[NLP] [Xi] text generation based on RNN and tf.keras

Statement This article comes from TensorFlow's official guidance (https://TensorFlow.google.cn/tutorials/sequences/text'generation), with some details added. [2] overview 1. tf.keras and keras have the following three major differences 1): opt must be opt under tf.train module, not under keras 2): the default saving format of tf.keras mode ...

Added by nsarisk on Fri, 06 Dec 2019 12:58:16 +0200

20181225 automatic creation of ssh mutual trust script in Linux shell bash environment

1. My Blog Blog Park https://www.cnblogs.com/piggybaba/ Personal website: http://piggybaba.cn GitHub https://github.com/AndyYHM/Writing/ 2. Introduction Abstract: under Linux, automatically create SSH mutual trust script Author: andy_yhm@yeah.net Date: 20181225 Keywords: Shell script, SSH, SSH trust, auto, SSH mutual trust, / bin/bash 3. Sc ...

Added by wes007 on Fri, 06 Dec 2019 07:01:15 +0200

5. ansible management task plan, ansible installation package and management services, playbook using ansible

1. ansible Management Task Plan # ansible testhost -m cron -a "name='test cron' job='/bin/touch /tmp/1212.txt'  weekday=6" Name specifies the name of the task plan, job specifies what its command is, and then it specifies its time-sharing day, month, week, or *. [root@yw02 ~]# crontab -l #Ansible: test cron * * * * 6 /bin/touch /tmp/1212.txt T ...

Added by Gibb Boy on Thu, 05 Dec 2019 04:46:06 +0200

Add user operation in mongodb

mongodb add user This tutorial introduces some operations of adding users in mongodb What are the users in mongodb In mongodb, users are used to manage the permissions of each database. In order to control the permissions of the database, users need to be added, assigned permissions to the specified users, and specific users need to do specific ...

Added by PW on Wed, 04 Dec 2019 08:15:07 +0200