MongoDB installation and simple commands, mongodb installation commands
Mongo http://www.mongodb.org/downloads
Vue tool download http://www.mongovue.com/downloads/
Create a folder and put the unzipped mongo file.
Make a variable and specify the bin
The following folders and paths can be customized.
Mongod -- dbpath d: \ installSoft \ mongoDbDATA
Mongo 127.0.0.1: 27017/admin
The following is a simple comm
View the summary of system load-related commands in Linux, and view load commands in linux
How to check whether the system is loaded
W: View the overall load command of the system. It mainly focuses on the load average value, indicating the average load value of the system within 1 minute, 5, and 15 respectively. Generally, it is OK if it is smaller than the number of CPU resources on the server; the uptime
Common awk commands (for conversion) and awk commands
Awk usage: awk 'pattern' {action }'Variable name meaningNumber of ARGC command line VariablesARGV command line meta ArrayFILENAME current input file nameNumber of records in the current FNR FileThe input field delimiter of FS. The default Delimiter is a space.RS input record delimiterNumber of domains in the current NF recordNo. of NR records so farOFS o
SQL commands for regularly deleting historical data from databases and SQL commands for historical data
Create a job,Used to regularly clear historical database data
Delete the data of the first quarter of the table before gps_comm, as follows:
Elete from gps_comm
WHERE (date
If you want to continue to delete the data from the first 120 days in another table, you can continue to add the data, for example:
Linux Security Basics: network configuration commands and linux basic configuration commands
1. ifconfig view and configure network interface information(1) set an IP addressIfconfig eth0 192.168.0.1(2) temporarily disable or enable the NICIfconfig eth0 downIfconfig eth0 up(3) set the subnet maskIfconfig eth0 netmask 255.255.255.0(4) view the status of the first ENIIfconfig eth0
2. Manage route tables and s
Linux File Management commands and linux commands
Directory management:
Ls cd pwd mkdir rmdir tree
File Management:
Touch stat file rm cp mv nano
Date and Time:
Date clock hwclock cal
View text:
Cat tac more less head tail
Cat: connect and display (multiple files can be connected)
Split-screen display:
More, less
More: similar to cat, the cat command displays the content of the entire file on the screen f
Common linux commands and common linux commands
1. Change the group to which the chgrp belongs:
For example, change the group of install. log to users.
chgrp users install.log
ls –l
View results: root users 68495 25 install. log
Owner Group
2. chown changes the owner
For example, change the owner of the install. log file to the Account "bin ".
chown bin install.log ls –l
Result: bin
Linux MySql commands and Linux MySql commands
1. Install the MySql server command:Yum install mysql-server
Yum install mysql-devel
2. Install the MySql client
Yum install mysql
3. Start the service
Service mysqld start or/etc/init. d/mysqld start
Stop:Service mysqld stop
Restart:Service mysqld restart
4. Create a root administrator:Mysqladmin-u root password 123456
5. Login
Mysql-uroot-p123456
6
Some useful SQLite commands are summarized, and sqlite commands are useful.
Display table structure:Copy codeThe Code is as follows:Sqlite>. schema [table]Obtain all tables and views:Copy codeThe Code is as follows:Sqlite>. tablesObtain the index list of the specified table:Copy codeThe Code is as follows:Sqlite>. indices [table]Export the database to an SQL file:Copy codeThe Code is as follows:Sqlite>. out
Use and introduction of linux su and sudo commands, and use of susudo commands
Function
Su: Switch users.
Sudo: enables other users to do (do) What the root user can do (first, the user must be granted the sudo permission)
Su usage
Su: switch to the root user without changing the current working directory. Environment Variable change
Su-: switch to the root user, but change the current working directo
Install the haproxy and haproxy commands and the haproxy commands
Directory:1. Install haproxy2. haproxy command
1. Install haproxy
CentOS comes with haproxy, but the version may be old. You can find the latest stable version of haproxy on the IUS source.
cat
The following is the process of compiling and installing the haproxy-1.7.10.
During the compilation and installation of haproxy, you can use the pcre
Common Linux commands-permission management commands chmod
Command name: chmodCommand: change the permissions mode of a fileCommand path:/bin/chmodSyntax: chmod [{ugoa} {+-=}{ rwx}] [file or directory][Mode = 777] [file or directory]-R recursive ModificationFunction Description: Change the permissions of a file or directory.
Number of PermissionsR 4W 2X 1Rwxrw-r-7 6 4
ExampleChmod g + w tstfileGrant writ
Notes on common Oracle commands and common oracle commands
Login without a password: sys as sysdba
View all current databases: select */name from v $ database;
View the current database connection user: show user
View All Tables of the current data: select table_name from all_tables;
View Structure: for example, table structure: desc table1 -- in command window mode
Create user username identi
Common commands in linux: 1. Common commands in linux
Man help document
Usage method: man command name, such as man; simple view method: command name -- help
Or help command name
Ls list folder content
Tree View directory structure
Cd switch directory
Pwd View Current Directory
Cp Replication
Move music videos; rename files
Find eg find/-name "file name"
Touch creates a new file
Mkdir create dir
002day -- common linux commands and common linux commands
Exit terminal command: exit
Command to disable Linux: init 0
How to switch the virtual terminal: Ctrl + Alt + F [1 ~ 6]
Who command: check how many terminals are open
Whoami command: Get the current user name
Date command: view the time and date
Cal command: View calendar
Clear command: clear screen (or Ctrl + L)
Su command: su-root (root us
PHP sends AT commands and phpat commands
Requirement: send the text message to the user's input mobile phone. You can customize the information.
Problem: No Telecom cat, you cannot customize text message content using the free api
Solution: connect to the server through a 4G Nic, operate the NIC through the AT command, and send text messages
It is found that AT quality transmission requires multi-encoding o
JSP 3 commands and JSP 3 commandsThree commands: page, include, and taglib. Page command:
* Import: equivalent to the import Statement * PageEncoding: Specifies the encoding of the current page. If pageEncoding is not specified, the default value is contentType. If neither pageEncoding nor contentType is specified, the default value is iso-8859-1 * contentType: equivalent to calling response. setContentT
Common Linux commands (30) and common linux commands
The cal command can be used to display calendars in the Gregorian calendar. The Gregorian calendar is an international calendar, also known as the Gregorian calendar. The "Gregorian Calendar", also known as the "solar calendar", is a year when the earth is traveling around the sun for a week. It is used by Western countries and is also known as the "Weste
Common Linux commands (27th) and common linux commands
In linux, the df command is used to check the disk space usage of the file system of the linux server. You can use this command to obtain the space occupied by the hard disk and the remaining space.
1.Command Format:
Df [Option] [file]
2.Command function:
Displays the available space of the specified disk file. If no file name is specified, the availab
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.