Start and Stop squid and nginx

1. nginx1: Stop and calmly close nginxsudo kill-QUIT Nginx master process id: Quickly stop sudo kill-TERM nginx master process id force stop sudo pkill-9 nginx 2, start sudo/usr/sbin/nginx-c/etc/nginx. conf 3. Check and restart sudo/usr/sbin/nginx-t-

File permissions in Linux

 Project Environment: the customer deploys the Application Service (Java implementation) on a windows 2008 server, and deploys the JBIZ intermediate Transaction Service Platform (C implementation) on Linux ).Problem: failed to copy the file in

Linux determines whether all content in the path is a folder

PATH = "full PATH" function IsFile () {FULLPATH = "$1" # traverse the directory for fName in $ (/bin/ls $ FULLPATH) do fileType = '/usr/bin/file "$ PATH" "$ fName" |/bin/awk' {FS = ": "} {printf $2}'' # The folder type is directory if ["directory" =

Use AWK to separate and intercept strings

Use $0 to split the current string. For example, cat num.2012032911 | awk '{print $2}' | awk '{split ($0, B ,". "); print B [2]} '| cut-c 3-get the second column, for example, the second column is com. sb3456.you, then obtain sb3456 from the current

Linux accesses windows Shared Files

Linux can access windows Shared Files Through Samba. If the smb service has been started, enter smb: // 172.30.7.48/in the browser to list the shared folders, click a folder. If you need a password, you will be prompted to enter the password. The

Linux Service Registration

Register a linux service Template#! /Bin/sh # chkconfig: 2345 85 15 ### begin init info # Provides: XXXX # Required-Start: $ remote_fs $ network # Required-Stop: $ remote_fs $ network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Description:

Linux Ubuntu10.10 install Macbuntu10.10 theme Process Analysis

Macbuntu is a Mac topic package for Ubuntu. Through the install. sh script provided by Macbuntu, Ubuntu can use a command to create a beautiful Apple Mac style, and Macbuntu provides various style adjustments.When the installation script is run,

Environment variables for learning ArchLinux

Make the modified environment variables take effect: source View environment variables: env or set persistent environment variables mainly exist in these files: /etc/profile/etc/environment ~ /. Bash_profile ~ /. The bashrc loading priority is: 1->

Ubuntu10.4 use openswan to set up an ipsec-based RSA Authentication environment to set up troubleshooting records

Attached to the virtual machine to load shared files sudo mount-t vboxsf down/mnt/share, where the virtual machine uses the oracle virtualbox. Therefore, the file system is vboxsf, and the virtual machine installation enhancement function down is

Memorandum of common linux commands

Install the rz command: yum install lrzsz install vim: linux yum vim Delete: rm-rf directory name rm-f file copy:/bin/cp jdk-6u31-linux-x64.bin/home copy the file to the home directory. Www.2cto.com vi: INSERT, and exit from ESC.: Wq save :! Wq is

Summary of common awk Information

1. regular Expression of awk metacharacters \ code sequences ^ start matching at the beginning of the string $ start matching at the end of the string. match any single string match any character in [ABC] and any character in [] Match [A-Ca-c] match

One linux Command per day cat

The cat command outputs the file content to the console or another file. You can view the command parameters without paging cat -- help. Cat fileName1 fileName2 outputs content in fileName1 and fileName2 files to the console. Of course, you can also

Linux Study Notes-LVM Management

1. LVM is short for Logical Volume Manager (LVM). It is a mechanism for managing disk partitions in Linux, LVM is a logical layer built on hard disks and partitions to improve the flexibility of disk partition management. The LVM system

Ubuntu 11.10 puts the minimize, maximize, and close buttons on the right.

Ubuntu 11.10 puts the "minimize, maximize, and close" button on the right. To learn about Hadoop, We have installed Ubuntu in the Windows system, at the beginning, I was a little unaccustomed to the Ubuntu system. The first one was to minimize,

View the number of Apache concurrent requests and their TCP connection status in Linux

View the number of httpd processes (that is, the number of concurrent requests that Apache can process in prefork mode): Linux Command: ps-ef | grep httpd | wc-l return result example: 1388 indicates that Apache can process 1388 concurrent requests.

Generate scripts and import policies for large data volumes

During the performance test of generating scripts for large data volumes and importing policies, if you need to construct a table with large data volumes, note the following: how to generate an unl file (this file is suffixed. unl data file, in the

Linux shell programming-shell judgment

Linux shell programming ---- Judge 1 test in shell to Judge 1 test-f $ file name to determine whether the file exists test-f $ file name. Example: Use the test-f command to find the input.txt file in the/homedrop folder, if exist is output,

Cocould not updateI CEauthority file solution

Cocould not updateI CEauthority file solves the problem that when I started my computer today, my friends and I were shocked: cocould not update ICEauthority file/home/usr/ICEauthority this reminds me that when I programmed the file I/O yesterday, I

Shell script to implement simple timed database check and mail

Shell script implements simple timed database check and mail shell mysql mailvi ip.txt # iostest_tw = 10. 52. *. * # iostest_kr = 10. 52. *. * imop_tw_s1 = 10. 52. *. * imop_tw_s2 = 10. 52. *. * imop_tw_s3 = 10. 52. *. * ko_kr_s1 = 10. 52. *. * #

Four Common awk statistics commands

Four Common awk statistical commands 1. sum cat data | awk '{Sum + = $1} END {print "sum = ", sum} '2. Average cat data | awk '{sum + = $1} END {print "Average = ", sum/NR} '3. Calculate the maximum cat data | awk' BEGIN {max = 0} {if ($1> max) max =

Total Pages: 5467 1 .... 5424 5425 5426 5427 5428 .... 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.