Error:couldn ' t connect to server 127.0.0.1:27017 src/mongo/shell/mongo.js
Generally this is the case that you specify the database, so you cannot. Automatically load the service. The second time we can't connect.
Each time before you
This problem always occurs when Ubuntu starts MONGO recently
root@ubuntu:/var/lib/mongodb# MONGO
MongoDB shell version:2.0.4
connecting to:test Tue 7 06:13:34 error:couldn ' t connect to server 127.0.0.1 shell/mongo.js:84
Exception:connect failed
string: AA bb cc DD
Requirements: The word in the output string
Pattern 1:
*@*:~$ echo AA bb cc DD |GREP//b//w*//b
RESULT:AA BB cc DD
Pattern 2: Substituting the + number for *
*@*:~$ echo AA bb cc DD |GREP//b//w+//b
Result: No output
#!/bin/bash
Smail () {
smtp= "mail.mailadd.com 25" # Mail server address +25 port
smtp_domain= "mailadd.com" # Send the domain name of the mail,
from= "xxx@mailadd.com" after @ @ Send mail address
rcptto=$1 #
1. Order Introduction
①locate
The Linux Locate command is used to find documents that match the criteria, and he goes to the database where the document and directory names are stored, looking for documents or directories that conform to the
When you learn UNP, you learn to quit the shell after adding the character "&" after the command, and the commands you run can continue to run. Puzzled reason, and to the Internet search the following, understand.
The following are the fragments of
STEP1: Start the Spark cluster, which is very detailed in the third lecture, after the start of the WebUI as follows:
STEP2: Start the spark Shell:
You can now view the shell situation through the following Web console:
STEP3: Copy the Spark
I think awk is a good thing under Linux, it's very handy to work with some text files. Under Linux, it's often the case that you deal with the shell, so the variables between awk and the shell are sometimes necessary, so simply summarize.
using
1, in any folder, create a new 10 empty files, the file name is T1.txt-t10.txt, the file content is 11-20, on a line, and then the 10 files named as t1.sh-t10.sh.Old driver Version:$ for ((i=1;i> "T" ${i}.txt; Done #创建加写入$ for fie in ' ls *txt ';d o
Conditional testing and comparison of shell scriptsFirst, the condition test of shell scriptIn general, various tests are performed in the various conditional structures and process control structures of bash, and then different operations are
As with the current development language, there are some grammatical differences!
The
Bourne Shell is a standard UNIX shell that was formerly used as a management system. Most of the system administration command files, such as RC
1, test: the detection of the expression is established, the return value is 0, otherwise, not 0Method:1) test expression2) "Expression"2. File test:-D: Whether it is a directory-F: Whether it is a file-E: whether there is-r: Whether Read permission
Today when writing a shell script to find the need to set the user's password, and the setting of the password is interactive, so in the script is obviously not very good, so the Internet to find information, found the following two non-interactive
Shell Programming Loop StatementsLearning Goals:Mastering the FOR Loop statement programmingMastering while looping statement programmingDirectory structure:For Loop statementL read different variable values to execute the same set of commands
1 for LoopSyntax: for variable name in condition; ; doneExample 1#!/bin/bashsum=0for i in `seq 1 100`;dosum=$[$sum+$i]doneecho $sumExample 2Find all files with the suffix. txt in the/123 directoryBulk Modify. txt to. txt.bakAnalysis:There are two
Some of the simple scripts that you've knocked over and put them on the occasional look, it won't be long before you feel very pediatric, but it should be helpful to understand the process control of shell scripts.#!/bin/bashp=176.202.52.For I in $ (
After a week, the progress seems a little slack, but after the weekend rallyShell (Shell)Gui:gnome,kde,xfceCli:sh,csh,ksh,bashBash (parent process)-----Bash (child process) they are independent of each other.Command history: HistoricalQuotes
One, parenthesis, round brackets () 1, single parenthesis ()
The command group . The commands in parentheses will be executed in a new sub-shell sequence, so the variables in parentheses cannot be used by the rest of the script. Multiple
I. Functions in the shellThe function is to organize a piece of code into a small unit, and give the small unit a name, when the code is used to call the name of the small unit directly.Format:function f_name() { command}Note: The
The command history of Bash's underlying features:Command history: The shell process saves commands that were previously executed by the user in its session~] #historyCustomizing the history function, which can be implemented by environment
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service