Tag:command line
-
Django creates a project
Create a new Django project with the following files. There are two ways to create a project: 1. Command line: Django admin py startproject mysite 2. Create directly in pycharm manage. Py is the startup file. urls. Py is the controller. The first parameter of path is the access path, and the second parameter is […]
-
Docker installation rocketmq
be careful:If you don’t have a docker environment, you can refer to your CentOS to install docker1. Query the available rocketmqdocker search rocketmq2. Pull the imagedocker pull rocketmqinc/rocketmq3. Start the namesrv service (create a new file path, my name is / www / MQ) docker run -d -p 9876:9876 -v /www/mq/data/namesrv/logs:/root/logs -v /www/mq/data/namesrv/store:/root/store –name rmqnamesrv […]
-
How does the nodejs process exit
There are several factors that can cause the nodejs process to exit. Some of these factors are preventable, such as the code throwing an exception; Some are not preventable, such as memory exhaustion.processThis global variable is an event emitter instance. If the process exits gracefully,processOne will be distributedexitevent. The application code can listen to this […]
-
Novice pit filling: using MySQL database for the first time under Windows
The first time I used MySQL was in PHP. This time I tried to use the command line operation and found a pit. I hope it will be helpful to some people. PS: I use xampp integrated mysql. Since MySQL may be closed due to its acquisition by Oracle, the original author developed a MySQL […]
-
Kubernetes core practice (8) — Service
13、service Four layer network load establish [[email protected] ~/yaml/test]# [[email protected] ~/yaml/test]# vim my-app.yaml [[email protected] ~/yaml/test]# cat my-app.yaml apiVersion: apps/v1 kind: Deployment metadata: labels: app: my-dep name: my-dep spec: replicas: 3 selector: matchLabels: app: my-dep template: metadata: labels: app: my-dep spec: containers: – image: nginx name: nginx [[email protected] ~/yaml/test]# kubectl apply -f my-app.yaml deployment.apps/my-dep created [[email protected] ~/yaml/test]# […]
-
Summary of common commands of minicanda
The main purpose of writing this is that when you are old, you always can’t remember the command line. Just sort it out. If you forget it, you don’t have to look all over the world. Commands related to channels View channels that have been added conda config –get channels Add channels conda config –add […]
-
Electron instance detection
I don’t know the name of this function. Let’s call it instance detection for the time being. Sometimes we want to open only one application after clicking on the shortcut, but the display is always cruel. The default of electron is that after packaging, each click on the shortcut will generate a process instance (except […]
-
“Full stack discussion” – simple use of Mongoose
1、 Preparatory work 1. Start Mongo database I won’t explain too much about downloading, installing and starting the database here. There will be many tutorials under Google. The command window after successful startup is as follows: 2. Enable visual Mongo tool Here we use Robo 3T. Why use the visualization tool? Because Xiaobai is still […]
-
Some practical exercises for kubernetes Beginners (4)
The first three parts of this series: Some practical exercises for kubernetes Beginners (I) Some practical exercises for kubernetes Beginners (2) Some practical exercises for kubernetes Beginners (3) Exercise 1 – kubernetes pod auto scale kubectl scaleThe command is used to expand or reduce the pod when the load is increased or reduced. In this […]
-
Git calls the diff function of idea on the command line
Under git diff command line, some people are happy and others are disgusted. Taking idea diff as an example, this paper introduces how to replace git’s diff tool IDEA diff As a graphical tool, IDEA also provides a few part of the command line interface, adding the bin directory in the IDEA installation directory to […]
-
The date difference of the new file when copying the file under different methods / systems, and the method of viewing the file creation time, modification time and access time
1: There was a dog headed man namedThe only shame, is the Earl of paradox, the master of Nintendo, Ubisoft’s bug, the pile driver of Polish donkey.1: He has three wives, a windows, a Linux and a MacOS.1: Every year the dog went up from his city to Shiloh to worship and sacrifice the king […]
-
MAC OS X 10.9. Summary of the method of starting SSD trim with the command line under X
Many of the online searches are the old methods of the past and do not support the 10.9 system. I upgraded 10.9.2 two days ago. Today, I suddenly found that the trim status has been reset to No. It was not reset from 10.9 to 10.9.1 last time. Just now I searched “trim command line” […]