Nginx log segmentation

The core of this script is: compress the log file every morning and move it to the Directory of the corresponding year and month, then regenerate the log file, and record the log #! /Bin/bashlogs_path & quot;/home/wwwlog/& quot; # log storage

Connect to mssql in linux + php

Due to environment requirements, the process of connecting linux + php to mssql to install and load the freetds module omitted many online yuminstallunixODBC * adding exportPATH & quot; $ PATH to/etc/profile: /usr/local/freetds/bin & quot; # echo &

Enable and disable the CentOs graphical interface

From: Drawing (xwindow) 2010-06-1818: 211. close xwindow: 1.1shell on the image interface and run init3 to enter the text mode. at the same time, the related services will be disabled (Xserver will definitely close) 1.2a... From:

Five recovery methods after the Linux system password is forgotten

I. lilo boot 1. in the displayed lilo: prompt, type linuxsingleBoot: linuxsingle2. press enter to directly enter linux single-user mode 3.vi/ etc/passwd to delete the password in the root item (here you can also directly use the passwd command to

Some basic Linux applications

A. view Port details: netstat-anltpB. view the disk capacity status of the installed file system df-lhC. displays the directory or file size du-sh/kokoD. modify date time date-dmm/dd/yy: date-d10/17/2008 date-shh: mm: ss... A. view the port details:

Solution to an incorrect deadlock in linux + php5.3

apc

PHP-fpm/cgi and APC or xcache encounter deadlocks. A machine keeps running PHP5.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 badgateway. in

Common linux commands for O & M

1. vmstat reports virtual memory statistics. vmstat [-V] [-n] [delay [count] delay is the delay time between two outputs; count refers to the number of times statistics are made at this interval. Example: vmstat-n3 (refresh once every 3 seconds)

Differences between single quotes, double quotes, backquotes, and backslash in shell

Shell can recognize four different types of leading characters: single quotation mark character & amp; #39; double quotation mark character & quot; backslash character \ double quotation mark character '1. single quotes (& amp; #39; & amp; #39;) #

View server connection status

# Count the current network connection status netstat-n | awk & amp; #39;/^ tcp/{++ S [$ NF]} END {for (ainS) printa, S [a]} & amp; #39; # view the current port 80 connection status: netstat-tn | grep & quot;: 80 & quot; | awk & amp; #39; {print $6}

Basic network configuration in linux

First: use the command to modify (effective immediately, restart failed) # ifconfigeth0192.168.0.1netmask00000000255.0up description: eth0 is the first Nic, and the others are eth1, eth * 192.168.0.1 is the IP address of the first Nic configured for

Linux low-level file programming (kernel level)

Unlike the FILE descriptor used in advanced FILE programming, the FILE descriptor used in low-level FILE programming is a non-negative integer. 1. file opening and creation # include & lt; fcntl. h & gt; intopen (constchar * filename, character flag

RHEL5.5vnc configuration

Use the gnome desktop environment as an example to describe and configure it! Modify the configuration file/root/. vnc/xstartup. remember to copy the backup before modification! Inside the red box is the place to be modified. # unsetSESSION_MANAGER #

7 tips on Linux

1. don't play with Linux. many people may feel confused when using Linux. which release should I use? Is it because I have not installed anything? How can I upgrade it so quickly! Why is it so unstable! Whenever a new software comes into being, he

View swap partitions and add partitions

Java code 1. view the system's Swap space using [root @ jumperusr] # freetotalusedfreesharedbufferscachedMem: 513980493640203400143808271780-/+ buffers/cache: 78052435928 Swap: 10522482... Java code1. View system Swap space usage [Root @ jumper usr]

Install H3CiNode in Linux

We have just installed a Linux system. to connect to the internal network, we need to use Huawei's H3CiNode. I just started using Linux, but I am not familiar with it. However, I was very excited about Linux over the past two days and I was very

Ubuntu9.10 creating samba sharing

Create a folder, right-click Properties, select share, select sharethisfolder, and click create. the following error is displayed: Failedtoexecutechildprocess & quot; testparm & quot; (Nosuchfileordirectory). The solution is as follows: sudo...

How to build and use samba servers

On windows, you can use a virtual machine to build the samba service for linux as follows: 1. install samba first; 2. configure the server; 3. start the server; 4. access the service in windows; procedure: install samba: 1. first use rpm-qa |

Linux file system details

1. there are few differences between Linux disk partitions and Linux release versions. the differences are mainly manifested in the special system management tools and different software package management methods. The directory structure is

Laruence's Linux private House dish-basic learning 1

The hard disk is divided into two areas: one is the information area for storing the hard disk, which is called the primary boot partition (MBR) and the other is the place where the actual file data is stored. MBR is the most important part of the

Configure linux as a forwarding router

1. add a virtual network card with the virtual machine hardware configuration. 2. go to linux. In the network configuration, you can see an additional Nic interface eth1. you do not need to set the gateway to set the ip address and MAC address of

Total Pages: 2732 1 .... 1974 1975 1976 1977 1978 .... 2732 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.