Top as one of the most common and important Linux system monitoring tools in daily management work, can observe the status of system process dynamically. But the disadvantage is that only support keyboard operation, display is monotonous. As I just
#!/bin/bash#author:haiy#email:haiyangfu512@gmail.com# Fri Apr 25 13:04:48 CST 2014
# GNU licence. # monitor and keep the program runningDEBUG = falsefunction restart_program () {# send the command to be executed to screen if [$ #-lt 3]; then echo $ #
No in the system by defaultXintedThis serviceFirst, install the xinted package:
View writeXintedServices Enabled
XintedThe service path is placed below:
XintedThe Global File of isXinted. confFile.XintedThis directory contains sub-files of each
This is currently the safest tutorial. If you are a newbie, follow the steps in this tutorial. If you have a certain foundation, you can skip some paragraphs.Modify port configurations
Run
vim /etc/ssh/sshd_config
Find the line # Port 22, remove the
1. Normal users enter the home directory?? Next to the previous progress, let's think about the implementation of the blog. Every user is logged on. They are all in their home directories, so our requirement is to set the default release directory
1: build user relationships with LAMP source code
A. the apache service processes requests with daemon users. Use root as the main process.
B. php source code installation will automatically add the call module to the httpd. conf file, but the
The Internet said that it has already patched the problem that shared directories cannot be displayed in the previous article. The patch address is "forbidden". If the df command is incorrect, you can see that/mnt/hgfs has been mounted successfully,
What man netstat seesActive Internet connections (TCP, UDP, raw)The protocol (tcp, udp, raw) used by the socket.Active UNIX domain SocketsThe protocol (usually unix) used by the socket.
What does w/o server mean?Active Internet connections (w/o
System performance has always been a topic of interest. How can we achieve the most effective performance tuning through the simplest settings, and how to ensure program operation with limited resources, ulimit is a simple method that we often use
In recent years, as I have participated in the construction of the relevant professional software Linux operating environment for many times, I feel it is necessary to take this knowledge into consideration for future reference.
Compile time and
The git server setup process records the following: Environment: the Ubuntu Virtual Machine (Boss) can be accessed over the network (server address: 192.168.9.103 ). Client Win7 computer (work)Software requirements: client software msysgit:
1. You can use the route command to temporarily modify it:
Route add default gw
2. Modify the/etc/sysconfig/network file permanently:
Script:
#! /Bin/sh# Configure default gw#$1 is ip of gatewayDefgw = $1Sed-I "s/NETWORKING. */NETWORKING = yes/"
I. Installation preparation1. Install OpensslTo enable Apache to support SSL, you must first install Openssl support. Openssl-0.9.8k.tar.gzDownload Openssl: http://www.openssl.org/source/Tar-zxf openssl-0.9.8k.tar.gz // unzip the installation
I. Iptables Firewall Service
Iptables is divided into two parts: one part is implemented in the kernel, and the other is the user interface command iptables. You can use this command to modify the firewall function. Therefore, to use the
1. Online adjustment parameters:Modify the configuration file of existing resources. The two peer nodes must be consistent, and then run drbdadm adjust on both nodes;2. Online verification of data integrity; (this has a great impact on
For the installation of web Services in the Linux system is almost the same, but the choice of software is not the same, but in the php-5.2.17 and the previous version of LNMP environment and later installed a little difference, enable the -- enable-
1. Download and unzip the Hadoop-0.20.2 version, tar-xvzf
2. edit the file conf/hadoop-env.sh to define at least JAVA_HOME to be the root of your Java installation.
Add this sentence: export JAVA_HOME =/Library/Java/Home
3. Try the following command:
Research Background
To help the company monitor the performance of multiple servers on the current network and output the performance monitoring chart, we have investigated several monitoring software. Currently, most monitoring software requires
Keepalived specifies the log file
First, check the parameters of the keepalived command.-S specifies the syslog facility.
/Usr/local/keepalived/sbin/keepalived -- vrrp-P Only run with VRRP subsystem./Usr/local/keepalived/sbin/keepalived -- check-C
1. install and configure Virtualbox Virtual Machine Ubuntu 12.04 and set dual-nic
Configure two NICs for ubuntu, one connected to the Host, Host-Only, and the other connected to the Internet, Bridge.
The virtual network card of the Intranet can be
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