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
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 &
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:
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
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:
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
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)
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;) #
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
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
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 #
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
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
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...
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 |
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
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
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
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