Summary of Linux Shell script strategy: 1

Summary of Linux Shell script Introduction: There are two common commands for printing on a terminal printing terminal: echo and print. First, I will introduce echo1.echoecho, which accepts three types of parameters. The example is as follows:

Keepalived02: MONITOR node resources

Keepalived02: Monitoring node resource 01! Configuration File for your 03global_defs {04 notification_email {05 oscersong007@gmail.com06} 07 keep keepalived @ localhost08 smtp_server route 3010 router_id LVS_DEVEL11} configure VGM {13 group {14 VI_11

Keepalived01: Dual-nic server hot standby

Keepalived01: Dual-nic server hot standby 01keepalived dual-nic server hot standby 02 03 environment: 04 master: eth0 (192.168.0.100/24) eth1 (10.0.0.100/24) 05 backup: eth0 (192.168.0.200/24) eth1 (10.0.0.200/24) 06 07 software installation: 08

Keepalived03: Resource Preemption

Keepalived03, will seize resources, this is unnecessary switching 03 how to make the MASTER do not seize the BACKUP resources after recovery: set both hosts to BACKUP, because not preemptible only supports the BACKUP mode 04 which becomes the MASTER,

Nfs server and client Configuration

Nfs server and client Configuration overview: SERVER: oracle11g: 10.80.11.202 client: oracle10g: 10.80.11.177 1. configure Server: NFS is installed by default in Redhat Linux, re-confirm whether the appropriate rpm package has been installed

Linux beginners, some practical commands

Linux beginners, some practical commands cd ~ Enter the root directory cd/enter the root directory make clean make error, clear rm-rf * Delete all folders rm-rf *. * Delete all files: rpm-qa | grep pcre check whether the pcre package netstat-apn has

How to add a hard disk in Linux

Method 1 for adding a hard disk in Linux. file-s/dev/hda1 view partition file Format 2. fdisk-l view the hard disk partition 3. fdisk/dev/device name partition Device 4. format partition to ext2 partition Mke2fs/dev/hda1 format to ext2 format

Why is ssh logon to linux Server slow?

In linux, ssh 1.2.3.4 is slow to log on to linux. It takes a long time to display the entered password. The reason is that the sshd process will reverse resolve the domain name based on the ip address, resolve the ip address based on the domain name

Configure mail server in linux

Configure mail server in linux 1. Configure yum Installation Tool ① enter the yum directory [root @ bj ~] # Cd/etc/yum. repos. d ② configure yum. repo [root @ bj yum. repos. d] # cprhel-debuginfo.repo yum. repo convert yum. modify the repo to [root @

Vim replacement operations

Vim replacement operations are often used: % s/oldstring/newstring/g and: % s/oldstring/newstring/gc to replace the oldstring in vim with newstring. When marking samples today, I searched for more vim replacement operations, as shown below: 1 ,: % s/

Linux performance optimization 2: optimizing swap partitions

About linux Performance Tuning 2: optimization of swap partition about linux Performance Tuning one: disk partition policy http://www.bkjia.com/ OS /201307/226371.html first talk about what is swap partition and its role? Swap partition, that is,

Linux performance optimization 7: Cropping System Service

Linux Performance Tuning 7: cropping system services talk about linux Performance Tuning 6: I/O scheduling algorithm selection http://www.bkjia.com/ OS /201307/228389.html usually deploy application services, for a single server only provides a

Analysis of Linux LD_LIBRARY_PATH

Analysis of Linux LD_LIBRARY_PATH (I) Historical Background nowadays, most of the software comes with a shared library, or for security reasons, or based on commercial considerations such as: ORACLE: $ ORACLE_HOME/lib MySQL: $ HOME/mysql/lib is

Perf learning-linux built-in Performance Analysis Tool

Perf learning-what is the built-in performance analysis tool in linux? Linux Performance Tuning tool, 32 or more built-in tools, and software performance analysis. In Linux kernel 2.6.31 and later versions, it is very easy to install perf. Almost

AIX user management

AIX user management user and group management/etc/passwd/etc/security /. profile/etc/security/limits/etc/security/passwd/etc/security/user/usr/lib/security/mkuser. default user attribute lsuser-f root create user useradd test smit

Open a specified port in linux

Open a specified port in linux # disable Firewall/etc/init. d/iptables stopservice iptables stop # stop Service # view Firewall Information/etc/init. d/iptables status # Open Port: 8080/sbin/iptables-I INPUT-p tcp -- dport 8080-j ACCEPT # restart

View computer hardware properties in linux

View computer hardware device properties in linux # uname-a # view kernel/OS/CPU information # head-n 1/etc/issue # view OS version # cat/proc/cpuinfo # view CPU information # hostname # View computer name # lspci-TV # list all PCI devices #

Nginx log Cutting Generation

Nginx log Cutting Generation 1. nginx log cutting # crontab-e59 23 ***/usr/local/sbin/logcron. sh/dev/null 2> & 1 [root @ count ~] # Cat/usr/local/sbin/logcron. sh 1 .#! /Bin/bash 2. log_dir = "/data/logs" 3. time = 'date + % Y % m % d' 4. /bin/mv $

Ubuntu compilation and installation of doxys

Ubuntu compiles and installs doxys. the linux version downloaded from doxys is x86, and sometimes it cannot run on 64-bit Ubuntu. Therefore, you need to download the source code for compilation. Download: [plain] wget

Bash test network connectivity

Bash test network connectivity [plain] #! /Bin/bash # use Google's public DNS to test echo "test network connection... test network connection... "echo PINGRET = $ (ping 8.8.8.8-c 4 | grep" icmp _") # echo $ PINGRET [-z "$ PINGRET"] & {PINGRET = $

Total Pages: 5467 1 .... 5249 5250 5251 5252 5253 .... 5467 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.