My configuration is the Linux, android4.2.2 SDK. The implementation details are in the code comments, and the variable name and echo content are part of the description.
The main process is:
1. The simulator that detects whether the port is
1. Methods of primitive violence
Copy Code code as follows:
mylinux:/home/zhanhailiang/public_html # Killall Nginx
2, gentle point of approachFinds the PID for the specified process and kill|kill-usr1 it off
Copy Code code as
The meaning of "2>&1" in the Linux shell
Script:
nohup/mnt/nand3/h2000g >/dev/null 2>&1 &
For & 1 It is more accurate to say that the file descriptor is 1, and 1 generally represents stdout_fileno, which is actually a dup2 (2) call. He standard
Copy Code code as follows:
#!/bin/sh
# Desc:setup Linux system security
# AUTHOR:CORALZD
# Powered by www.freebsdsystem.org
# version 0.1.2 written by 2011.05.03
#account Setup
Passwd-l XFS
Passwd-l News
Passwd-l NSCD
Passwd-l Dbus
This article mainly introduces the "shell judge string is a number", mainly related to the shell to determine whether the string is a digital content, for the shell to determine whether the number of figures interested students can refer to.
#!
1. Preface
Almost six months did not write a blog, deserted for a long time, the work of the chores too much, their own more and more lazy. In order to spur their own growth, or adhere to write a blog, record their growth.
2. Introduction to Shell
First, the arithmetic operation
Copy Code code as follows:
+ - * / %
second, the relationship operation
Copy Code code as follows:
>=
Third, the test operation
Testing command: Test [] [[]] [(
If you're dealing with a shell script and it's a common thing to traverse a time range, share it with you today:
Copy Code code as follows:
#!/usr/bin/env Bash
Date1= "$"
Date2= "$"
echo "Date1: $date 1"echo "Date2: $date 2"
1. Wscript.Shell (Windows Script Host Runtime Library) is an object, and the corresponding file is C:\WINDOWS\system32\ Wshom.ocx,wscript.shell is a component that the server system will use. Shell is the meaning of "shell", this object can perform
Today to optimize the company's new deployment servers, found that the TTY terminal has 6, in order to save a bit of memory, decided to leave only a TTY terminal, the others are off, but CENTOS6 and centos5 terminal closure method completely changed,
Today colleagues found that the internal server's hard disk space is not enough, there are many backups, I can not delete, and found a 320g hard disk mounted, want to later the shell script backup to the new hard disk, to make room for the old hard
This script has been tested on the Ubuntu and CentOS versions, and the script is as follows:
Copy Code code as follows:
#!/bin/bash
Line= ' =========== '
#linux发行版名称if [[-f/usr/bin/lsb_release]]; Thenos=$ (/usr/bin/lsb_release-a
When porting JSP pages on Windows to a Linux environment, it is too slow to find a transform encoding and modifying the default encoding type, write this script to attempt file traversal ~
Long time no write, Rusty.
Copy Code code as
Customer requirements, do not want to allow foreign IP to access the server, would have to let the computer room in the upper route to solve, but those people do not bird you!!! ~~~~In this case, you can only use iptables to solve the ~~~~~~~~~About
Getting a snapshot of a Web page and generating thumbnails can be done in two steps:
1, get a snapshot of the Web page
2. Generate thumbnail image
Get a snapshot of a Web page
Here we use PHANTOMJS to achieve. For detailed usage of PHANTOMJS,
A: This script runs the machine, the Linux RHEL6B,c,d,... : To be installed zookeeper cluster machine, Linux RHEL6
First, on the machine A that runs the script, determine if SSH can be logged in without a password to the machine b,c,d to install ZK,
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.