echo "======================================welcome=============================================="echo "= = = = = = = = = =echo "= = = This script is used to monitor the WebLogic domain running state The main monitoring object has = =echo "= = = = =
?
Catalog Operations Base Class
Class FileDirectory {
var $servermode;
var $serverpath; Web server directory
var $pagepath; Current Page Catalog
var $path; Current directory
var $ffblk; Used to store information about a file
function FileDirectory ()
Two I/O modes
1. Two I/O modes
Blocking mode: Waits until the execution of an I/O operation completes without handing control over to the program. The socket defaults to blocking mode. Can be processed through multithreading techniques.
Non-blocking
A friend mentioned a demand, there are a number of applications of the host need to check whether the network is normal, of course, many methods, such as deployment and saltstack, directly check whether minions online, or you can use Python to get a
1.Socket Address multiplexingint getsockopt (int sockfd, int level, int optname, void *optval, socklen_t *optlen); int setsockopt (int sockfd, int lev El, int optname, const void *optval, socklen_t optlen);The server uses
Implement the DR Mode of LVs one. Experimental environmentThree machines:
Director node: (ENS33 192.168.10.53 VIP ens33:0 192.168.10.80)
Real Server1: (Ens33 192.168.10.51 VIP lo:0 192.168.10.80)
Real server2: (Ens33 192.168.10.52
Implementing the NAT mode of LVSThe principle and characteristics of the detailed description of the LVS load balancing one: Lvs-nat, lvs-dr mode of the principle of detailed introduction1. Experimental environmentIP Address PlanningRequest IP
TCP Asynchronous service-sideThe core functions are similar to those of the synchronization server, as follows:Class Talk_to_client:public Boost::enable_shared_from_this , boost::noncopyable { typedef talk_to_client Self_
Note the table structure used by this program is:
Use test;
CREATE TABLE Image (
ID int unsigned auto_increment primary key,
Description text,
FileName varchar (50),
FileSize int,
filetype varchar (50),
Filedata Longblob
);
*/
? Cmd={read|list|form|
"13.1" What is shell script.
1 shell script is a "program" written using the function of the shell, which uses a text file to write some shell syntax and commands (including external commands) inside, with regular representations, pipeline
Deletes default shares for all partitions. bat
Copy Code code as follows:
@echo off
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::
:: First enumerate the existing partitions, and then delete each partition by the
Acpid power management by suspending unnecessary equipment, reducing the frequency of the CPU or other methods, can reduce the energy consumption, achieve the purpose of saving electricity.
APMD--APMD is used to monitor the power state of the
Automatically compare and delete scripts after backing up Files
Recently, the company is working on a data backup plan, so I have compiled two backup documents, "scp automatic copy script" and "rsync + inotify for real-time file synchronization
In the last two months of my spare time writing a private project to write a high-performance Web server under Linux, named Zaver. The main framework and basic functionality have been completed, and some of the advanced features will gradually
Chapter 5 NiO
5.1 why do we need NiO
Synchronous access to the shared state in a multi-threaded environment increases the overhead of System Scheduling and context switching, which cannot be controlled by programmers.
Blocking wait.
We need a set
Author: sodimethylSource: http://blog.csdn.net/sodmeDisclaimer: This article can be reproduced without the consent of the author, but please keep the author, source and declaration information before the beginning of the article. Thank you.
Due to
Lai Yonghao (http://laiyonghao.com)
(Continued)
Games (servers) are CPU-intensive and I/O-intensive applications. However, due to Gil, Python cannot fully utilize multiple cores, so distributed solutions are generally used, i/O is quite interesting.
This article provides a detailed analysis of functions used to obtain the current url path using PHP and the implementation methods of server variables. For more information, see
This article provides a detailed analysis of functions used to obtain
UNIX network programming. Volume 1, Socket network API (version 3rd) (Chinese version) (the classic work of Steven s, two top network programming experts are invited to write a revision)
Basic Information
Original Title: UNIX network programming,
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.