Example of using getopt in Shell script

In Shell script, the getopt example can easily use the format option with the corresponding parameter. The example is www.2cto.com Shell code #! /Bin/bash set -- 'getopt-q AB: c "$ @" 'while [-n "$1"] do case "$1" in-) echo "option-a";-B) value = "$2

Simple reverse proxy implementation based on CentOS

The topology of a simple reverse proxy is basically the same as that of a common proxy server.1. squid server-> override squid. conf-> http_port 200.98.10.1: 80 vhost-> visible_hostname 200.98.10.1-> acl all src 0.0.0.0/0.0.0.0-> http_access allow

Fedora18 mount point/partition settings

Many friends sent an email asking about the issue of mounting the fedora18 installation time zone. Let me explain it in detail here. First, reinstall fedora18 on an existing system to retain/home the first figure of the partition. Make sure to

Nginx + CI 404 error

Nginx + CI Error 404. For URLs such as/index. php/abc, Apache and Lighttpd will press "index. php? Nginx considers the content of the abc file under the "index. php" directory as the Request Name. Therefore, CI cannot run without configuring rewrite

SUSE Linux commands

SUSE Linux-related operation commands 1. Compress tar-cvf xxx.tar xxx2, decompress tar-xvf xxx.tar 3, clear files> files 4. Exit upon timeout, log on to the system as the root user, enter the vi/etc/profile command to edit the profile file. Search

Summary of how to add environment variables in linux

Linux environment variable adding method summary linux environment variables with no double quotation marks, or variables do not need to be included {} is not sensitive, a small look at the profile file, it seems that if the system finds that the

Ntpdate and hwclock commands

The ntpdate and hwclock commands use the ntpdate command to obtain the network time and use it as the hardware time: www.2cto.com/usr/sbin/ntpdate servername/ip &/sbin/hwclock -- systohc>/dev/null 2> & 1 Example: /usr/sbin/ntpdate tw.pool.ntp.org

Migration of gdb tools

Gdb tool migration requirements: You want to use gdb to track and debug makefile projects. The target machine does not have the gdb tool. Environment: 8.133 is installed with a linux system, that is, the server, and smb is successfully set. The gdb

Build the system

After the system is set up, 1. solaris graphical desktop: cde (General desktop) default, jde (java Desktop) Improved options-session process-jds-java Desktop System (similar to xp, surprised) 2. maintenance using remote tools: openssh, use securecrt.

Number of files opened by modifying processes in linux

In linux, you can use ulimit-a to view related messages when modifying the number of files opened by processes. For www.2cto.com 1, the maximum number of files opened by linux by default is 1024. You can view them through ulimit-n. Many system

Linux shell & amp; and |

In Linux shell, & | a return value is returned when shell executes a command. The return value is saved in the shell variable $?. When $? = 0 indicates that the execution is successful. When $? = 1 indicates execution failed. Www.2cto.com sometimes,

Understanding ext2 File System

Understanding the composition and partition of the ext2 File System Hard Disk 1. the physical structure of the disk is a circular disk (mainly used to record data). The mechanical arm www.2cto.com [the disk read header on the manipulator arm (can be

RHEL6 install BCM57xx driver

Install drivers in Redhat Enterprise 6 [Root @ localhost Driver] # tar-xvzf./tg3-3.116j.tar.gzTg3-3.116j/Tg3-3.116j/makeflags. sh.Tg3-3.116j/ChangeLogTg3-3.116j/MakefileTg3-3.116j/tg3_firmware.h.Tg3-3.116j/tg3.c.5)

Rsync + inotify for real-time unidirectional Synchronization

Source server 10.13.114.16Target Server 10.13.114.17Objective: To synchronize the source server 10.13.114.16/home/admin/www/folder files to the/home/admin/www directory of the target server 10.13.114.17 in real time Step 1: Install rsync on the

Solution to an incorrect deadlock in linux + php5.3

PHP-fpm/cgi and APC or xcache encounter deadlocks.A machine keeps running PHP 5.3.x (fpm or fastcgi mode), and deadlock often occurs from time to time. The performance is that the FCGI service cannot be connected. NGINX reports 502 bad gateway. At

Linux signal instance

SA_RESTART-----------------------------------------Set the SA_RESTART attribute of the signal S. If the system call is interrupted by the signal S, after the signal processing function returns,The system call will be automatically restored. #

Introduction to rsync in linux

Rsync is a data image and backup tool that provides functions such as fast image synchronization and remote data backup between local and remote files and directories. During the synchronization process, rsync only synchronizes the changed files

Linux system composition

Linux generally has four main parts: kernel, shell, file system and application. The kernel, shell, and file system form a basic operating system structure, which allows users to run programs, manage files, and use the system.I. Linux KernelThe

Linux: Implementation of account lock policies

Setting a lock policy for an account is a requirement in the security baseline configuration. In windows, you can easily set a lock policy. In linux, you can use the pam_tally2.so module of pam.Linux has more extensive and powerful account locking

Run two Tomcat processes on the same machine

Run two Tomcat servers at the same time. The second Tomcat server needs to modify three ports: ---- The original value is 8005, which can be changed to any value without conflict Second: (92nd rows)EnableLookups = "false" redirectPort = "8443"

Total Pages: 5467 1 .... 4727 4728 4729 4730 4731 .... 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.