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
#!/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 #
Variable permutation command permutation formula substitution reference use backslash implementation reference use single quotation marks with double quotes
variable Substitution
There are four forms of substitution for variable permutationsSyntax
http://fhqdddddd.blog.163.com/blog/static/186991542012417104144188/
EchoUse the echo command to display a line of text or a variable, or to enter a string into a file. Its general form is:echo stringThe echo command has many features, the most
Judgment file:Workdir=/home/tmplocal_list_file= $WORKDIR/local.list#if no Local.txt file, generate a new oneif [!-F "$LOCAL _list_file"]; ThenTouch $LOCAL _list_fileFiNote: Be sure to have a space, to determine whether the file exists, if it does
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
Today, when writing a shell script, several commands are strung up to execute, and the previous command fails, and the command is not followed. Google on the Internet, find solutions, using logic and && can.
Here's a summary of how the shell
The difference between a single middle bracket and a double bracket in a shell
1.["[" is an executable program, the path is "/usr/bin/["He is equivalent to the executable program "test".
Example:If [3-eq 2]; Thenecho "= =";Elseecho "!=";Fi
Because the shell does not support direct multiline annotations, it summarizes the following workarounds for multiple lines of shell annotations one, through here documents and: Realize 1, the simplest method: a=b:~> Cat This are \ $A: $A > End
Step one: Construct apps in index.html, pages, shellStep two: In the shell controller JS code in the OnInit method Addcontent (APP)
First Step code:
Sap.ui.localResources ("mobile");
var app = new Sap.m.app ({initialpage:
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
Preface
Pre-installation requirements, using Hadoop, basically do not need to change anything:
1. Java Environment
2. Hadoop (HBase-based HDFs)
3, zookeeper (I use the independent zookeeper here, because previously used has been installed, of
A program that often needs help explaining.
The ways to activate help instructions are described in two ways
1. The simplest way is to discriminate by the number of parameters. For example, displays the help description without any parameters.
2.
Original: http://apps.hi.baidu.com/share/detail/31263915
Comparison of strings and values in the shell
In the shell, the comparison between the string and the numerical method is different, pay attention to distinguish
Integer comparison:
-eq
The filter condition for the scan command in the Hbase Shell Prefixfilter is to filter the Rowkey.
The difference between scan and get is that get gets the data from a row, and scan gets the data from several row, so you can set the filter
Shell script is similar to batch processing under Windows/dos, that is, the use of various commands pre-placed into a file, convenient one-time execution of a program file, mainly for the convenience of administrator settings or management. The
1, Special shell variable$# the number of arguments passed to the script$* displays all parameters passed to the script in a single string$$ the current process ID number for the script to run$! the ID number of the last process running in the
In what's a shell and what is Bash, it explains what the shell is, and then see what features it provides:1. Interoperable, and non-interactive use of the shell. In interactive mode, the shell receives input from the keyboard, and in non-interactive
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 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