: Enter the CD Bin (the main demo is under the Window System) Continue input: mongod-dbpath= "D:\mongo\data" The last line of code tells us that the server port is on port 27107. Let's then reopen a command window to connect to the server: Under the corresponding root directory file: Enter MONGO: Here we can learn simple database operations: As a small white, if you do not know what commands, then you can enter help to assist you to view. MongoDB
to start with a new image1, continue to modify, submit Image2 Delete Image1
Of course this will be very painful, so it is generally used Dockerfile to build get the final image, reference []
Although a new image is generated and you can see 100MB in size, it is very quick to know from the commit process that it does not take up 100MB of hard disk space independently, but only modifies it on the basis of the old mirror, which shares most of the common "slices".
Continue belo
Date: Time ManagementLinux:Hardware clock: Clock,hwclockHwclock-W: Change Hardware clock-S: Change the system clockSystem clock: DateRtc:real Time ClockNtp:net Time ProtocolGet help with using the command:Internal command:Help COMMAND:External command:COMMAND--helpCommand manual: ManualMans COMMANDWhatis command: View the commands sectionSub-chapters:1: User command/bin,/usr/bin,usr/local/bin2: System call3: library Call4: Special files (device files)
compiled into the a.out file. In the actual development, we often need to use the strings command to confirm and verify, to ensure foolproof. Sometimes, your changes are not wrong, but the actual is not compiled into the library, and therefore can not be effective, puzzled for a long time, misleading.I almost have to use the strings command every day, so I fell in love with strings.For more information on strings, I enclose the address of the previous article: http://blog.csdn.net/stpeace/artic
information[Email protected] data]$Ipcs-u--human ------Messages Status--------allocated Queues=0used Headers=0used Space=0B------Shared Memory Status--------Segments Allocated4Pages Allocated1760Pages Resident339pages swapped0Swap Performance:0Attempts0successes------Semaphore Status--------used Arrays=0allocated semaphores=0Additional format controls:Ipcs-l--humanDisplay size in a way that humans can read[Email protected] data]$ IPCS-L --human ------Messages Limits--------max queues System w
Ii. File directory commands
CD [path] can be a relative or absolute path to change the working directory. This command changes the current directory to the specified directory. If no path is specified, return to the user's main directory. To change to the specified directory, you must have the execution and read permissions on the specified directory.You can use "CD-" to return to the previous working directory."./" Indicates the current directory, a
Tags: entry rmdir directory files Linux Common commands delete contains modify parameters txtecho "Hello" >> test.txt append hello to test.txt a > is overwrite two >> is appendecho {0..10}0 1 2 3 4 5 6 7 8 9 10echo {A.. ZA b c d e F g h i j k l m n o p q R S t u v w x y ZEcho stu{0..10}Stu0 stu1 stu2 stu3 stu4 stu5 stu6 stu7 stu8 stu9 stu10Touch file{1..10} Create File # 1-10mkdir stu{0..10} Create folder S
, compression is faster.
Although it is faster than repairDatabase, this command will block all other operations during running and is slow. You can run it during scheduled maintenance.
If you run this command on the secondary node of the replication group, the secondary node will automatically downgrade itself to the "recovery" status until the compression is completed.
Cancel one compression
At the beginning of compression, the index of the set will be deleted. After compression, the index is
]:~/linux/awk$awk--re-interval'$2~/192\.168\. [0-9] {1,3}\. [0-9] {1,3}/{print}'host.txt host1192.168.1.1Host4192.168.3.98Host5192.168.3.98Host6192.168.9.254$: The 2nd column, followed by the ~ indicates that the second column matches the result of the regular expression followed by the true, execute action, here is the print current line {print}, if added! is to take the counter[Email protected]:~/linux/awkawk'$2
21. splicing with cat the 1cat command is a simple command that is commonly used. cat itself indicates concatenate (splicing) 2. reading files with cat generally amp; 26684; is catfile1file2file3.
2.1 splice with cat
1 cat command is a simple command that is commonly used. cat itself indicates concatenate (splicing)
2. the general format for reading files with cat is
Cat file1 file2 file3. .. // This comma
Code After going online, you will encounter problems and bugs. Generally, the most direct thing is to roll back to a previous version: 1. First, use git log to view the version to be rolled back.
[Lixinglei @ bogon my] $ git logcommit commit: 248cba8 944274 fauthor: lixinglei
2. If you want to roll back to the version of "requirement 2", you can directly use
1. View docker information (version, Info)
# View docker version $ docker version # display docker System Information $ docker info
2. Image operations (search, pull, images, RMI, and history)
# Search image $ docker search image_name # download image $ docker pull image_name # list images;-A, -- all = false show all images; -- no-trunc = false don't truncate output;-Q, -- Quiet = false only show numeric IDs $ docker images # delete one or more images
1, Function : List The contents of the directory;2. Format : LS [options] [file][option] To specify that you want to view the file-related content, if the file is not specified by default view all files in the current directory;3. Common parameters :4, use example :[[email protected]/]$ ls–l (can be shortened to LL)Total 220Drwxr-xr-x 2 root root 4096 Mar 2005 binDrwxr-xr-x 3 root root 4096 APR 3 2005 Boot-
American English. As follows:
Note: this is only because the supported language is changed during the current login.
Several simple commands
1. Help Command: -- Help
2. Display Date and Time: DateUse
Date -- HelpSome formats of Help Command calling % A literal %
% A locale's abbreviated weekday name (e.g., Sun)
% A locale's full weekday name (e.g., Sunday)
% B locale's abbreviated month name (e.g., Jan)
%
Tag:io use spon data div bsctiad Database common commands 1, help view command prompt help db.help (); db.yourColl.help (); db.youColl.find (). Help (); Rs.help (); 2. switch/CREATE DATABASE use yourdb; when a collection (table) is created, the current database 3 is automatically created, all databases are queried show dbs;4, and the currently used database is deleted db.dropdatabase (); 5. Clone the datab
Linux practice engineer study NOTE 2: Common commands for System Management-Linux general technology-Linux technology and application information. The following is a detailed description. Original Author: junger
1. useradd redhat
2. passwd redhat
3. su?
4. exit
5. df? H partition status
6. du? Sh/* size of the space used by the Statistics file o
Linux practice engineer study Note 2: common system management commands redhat-config-network-tui is a unique configuration tool for redhat. After configuring network parameters with this command, writes to the/etc/sysconfig/networking/profiles/directory, and takes precedence over network-scripts/ifcfg-eth0
1. useradd redhat
2. passwd redhat
3. su-
4. exit
5. df-
the executable fileFormat: path [[%path%][x:]path[;] ......]; Separating directories in the command path%path% Specifies that Windows XP adds a command path to an existing catalog set listed in the PATH environment variable.7. Xcpoy: Copy all folders and files under directories and directories to the specified directory location.Format: xcopy source [destination][/s][/e][/v]Parameter explanation:/s copies non-empty files./V validates each file when it is written to the destination file./E to co
1. TopThe most recently used is the top d-1 (refreshed once per second)Mainly see mem used using memory, CPU idle remaining Cpu;cpmmand process, and CPU occupied by%CPU process.At present, the main problem is the system to see which process is taking up a lot of CPU causing system problems.By the way, a common hotkey
Hotkey
Use
T
Displays the summary information switch.
M
Displays the memory information switch.
A
Cl
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.