Whether the monitoring service exists. if it does not exist, create #! /Bin/shwww.2cto. comkill_result 'psaux | grep & amp; #39; index. php & amp; #39; | grep-vgrep | wc-l 'if [$ kill_result-eq0]; thennohup/usr/loc...
Whether the monitoring service
When you enable the linux routing function, high-level routers can connect different hardware devices and translate many different packet formats. Generally, the prices are not cheap! In this chapter, we do not want to discuss such high-level things.
There are three methods for executing scripts in linux. /bar. sh is executed in the sub-process of the folk... /bar. sh is. /bar. sh content is read to the current running environment and execute exec. /bar. sh is to replace the current process.
Tar. how to decompress the file ended in xz today, I tried to compile the kernel and downloaded a tar file. there are few online solutions for compressed files at the end of xz, but I still found them as follows: www.2cto.com $ xz-d ***. tar. xz $
Debian scheduled task management cron settings (the easiest way to shut down at a specific time every day: 1. gedit/etc/crontab2. add a line at the end of the file: 0122 * roothalt-p # indicates shutdown at every day.) all tasks with system
Return any value from the bash function. unlike other programming languages, a Bash function is more like a subprogram, that is, its return value. it can only be a number and 0 indicates success, if the value is not 0, the operation fails. If you
The simplest endless loop of shell script programming programs in linux all know shell scripts. even if you are not familiar with them, you should have heard of them! So how to write an endless loop in a shell script? Www.2cto.com for those familiar
Php-fpm.conf important parameters max_children and request_terminate_timeoutphp-fpm.conf have two crucial parameters: one is max_children and the other is request_terminate_timeout. one of my two sets is 40 & amp; Prime ;, one is 900 & amp; Pr
LinuxDocumentViewerpdf solves ubuntu with Chinese garbled characters. it is found that when the default Evince program is used to view the pdf document, the Chinese pdf document is displayed with garbled characters after being opened. I checked the
Simple Linux command line notes: hwclock displays or sets the CMOS time hwclock [options] www.2cto.com option-r default options, read and print the CMOS time-s. set the CMOS time to system Time-w... info & n concise Linux command line notes: hwclock
Linuxpsaux command? There are five statuses for resolving processes on linux: 1. running (running or waiting in the running queue) 2. interruption (sleep, blocked, waiting for the formation of a condition or receiving a signal) 3. non-disruptive (do
Linux was first exposed to linux after being changed to the root user's command operation. The most common problem in ubuntu is the issue of user permissions, which often results in insufficient permissions. Www.2cto.com if the root user is not
Writeuserwallwrite is used to send information to a user who has logged on to the system, wall can send information to all users logging on to the system. The user parameter www.2cto.com is the user example of the user who needs to send the
Install an lftpyum-yinstalllftp script to automatically back up the database www.2cto.com # every day #! /Bin/bash/usr/local/mysql/bin/mysqldump-uusername-ppassword -- databasesblog & gt;/home/wwwroot/backup/da... install an lftp yum-y install lftp
Ubuntu12.10 software installation summary is basically the use of sudoapt-getinstallXXXXXXX 1. run the following command to install PHP + MYSQL + Apache on Ubuntu with apt-get: www.2cto.com (1) install MYSQLsudoapt-getinstallmysql-serv... ubuntu12.10
The problem of creating a new user by adduser under ubuntu was encountered yesterday. I used the user's ub and created a new user by using useradd, however, when switching to this user, the terminal does not display as usual [user @ hostname ~] $,
In linux, how to make the PASH variable configuration take effect permanently. In general, the setting of variables in linux and the setting of custom variables and command aliases will expire after you log out of bash, to take effect permanently,
Linuxshell compares two floating point numbers. if they are written as [& quot; $ a & quot;-lt & quot; $ B & quot;] and $ a $ B is an integer, it works well, but for floating point numbers, it will not get the desired result, it will only give
Ubuntu 12.04 has changed the custom Startup mode from Ubuntu to Unity. in some cases, you need to add a custom Startup mode for a third-party program, which is easier to find in the search, it can also be easily attached to the launcher. The
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