Machine
Mysql> flush privileges;
Mysql> quit;
Go to the rc2.d rc3.d rc4.d rc5.d directory in the/etc directory and create a soft link file for the auto-start service;
$ Ln-s ../init. d/mysqld S20mysql
Go to the rc0.d rc1.d rc6.d directory in the/etc directory and create a soft link file for shutting down and stopping services;
$ Ln-s ../init. d/mysqld K20mysql
2) install and configure Apache (Apache2.x. x)
Open and enter the Apache compiling environment:
$ Tar xzvf httpd-2.x.x.tar.gz
$
compile the installation process:# Tar XF httpd-2.4.10.tar.bz2# CD httpd-2.4.10#./configure--prefix=/usr/local/apache--sysconfdir=/etc/httpd--enable-so--enable-ssl--enable-cgi-- Enable-rewrite--with-zlib--with-pcre--with-apr=/usr/local/apr--with-apr-util=/usr/local/apr-util-- Enable-modules=most--enable-mpms-shared=all--with-mpm=event# Make make installParameter description:--prefix=/usr/local/apache Installation Path--SYSCONFDIR=/ETC/HTTPD configur
Article Source: http://hi.baidu.com/top2top/blog/item/0bea951600a16050f2de322b.html apache2.0 prefork and worker module Performance Tuning
The performance improvement of Apache 2.0 is the most attractive. On UNIX systems that support POSIX Threads, Apache can use different MPM to run in a mix of multi-process and multi-thread modes to enhance the scalability of some configurations. Compared with Apache 1.3, version 2.0 has made a lot of Optim
path ends with "/", the corresponding url must end with "/", and vice versa.In addition, the mod_proxy module supports the connection pool function with the backend server after httpd2.1. The connection is created on demand and can be saved to the connection pool for further use. The connection pool size or other settings can be used in ProxyPass
Key = value. Common keys are as follows:◇ Min: minimum capacity of the connection pool. This value is irrelevant to the actual number of connections.
-so--enable-mods-shared=most--with-mpm=worker, Where the worker is set to modify its working mode. Worker is a new MPM that supports multi-threaded and multi-process hybrid models;Use the make command to start compiling;Use the sudo make install command to start the installation;Go to the server's Bin directory and start the service: Cd/usr/local/apache2/bin/sudo./apachectl startOpen the browser locally, ac
Apache 2.x has several concurrent processing modules, which must be specified through-with-MPM = xxx during compilation. The common concurrent processing modes are prefork and worker. The prefork mode is old, with pure process concurrency and no threads. The processing method is the same as apache1.x. It is applicable to servers without a thread library or do not want to use threads; worker is a multi-process and multi-thread mode. In worker mode, the
first, compile and installApache1.Environment Preparation:2.apache2.4.9+new Featuresapache-2.4+ Some of the new features (see https://httpd.apache.org/docs/2.4/zh-cn/new_features_2_4.html)1. MPM that can be loaded at run timeMany MPM can now be built as loadable modules at compile time. The selected MPM can be configured with the loadmodule instruction at run t
To improve HTTP's "'keep alive" problem, Apache introduced the MPM (Multi-processing modules, multi-channel processing module) http://httpd.apache.org/docs/current/mpm.html in version 2.0
This article describes the basic working principles and application limitations of MPM (Multi-processing modules.Run the following code:$./Configure -- help | grep mpmShown as follows:-- With-
Article Title: coexistence of Apache and Tomcat in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
A Simple Method for integrating Apache and Tomcat in Linux XKER. COM Source: kit favorites Article 1. Preparation, download the required files. It is assumed that JDK has been correctly installed and configured.
1. download the required files from the Apa
At the end of this post, the background is edited by rootsecurity from 2012-2-2814: 12. as the JSP environment is required, I will write an article on Apache + Tomcat integration. Required software: 1、httpd-2.2.22.tar.gz2、tomcat-7.0.23.tar.gz 3, tomcat-connectors-1.2.30.t... This post was last edited by rootsecurity at PM
Background: As the JSP environment is required, I will write an article on Apache + Tomcat integration.
Required software:
1、htt
Simple method for integrating Apache and Tomcat in Linux: 1. prepare and download the required files. It is assumed that JDK has been installed and configured accurately. Download the required file from the Apache official website: add the statement for loading mod_jk: You can also write the preceding statement to the APACHE configuration file to change HTTPD. CONF file, as follows: then, modify workers. pro
1. prepare and download the required files. It is assumed that JDK has been installed an
Check_mk page error handling method solve this problem in Ubuntu is very simple, is to install apache2-mpm-prefork, this is the way each request uses a process independently. [Plain] root @ icinga:/etc/check_mk # apt-getinstallapache2-mpm-preforkReadi... check_mk page error handling method solve this problem in Ubuntu is very simple, is to install apache2-mpm-pre
httpd-2.4 requires a newer version of APR and Apr-util, so it needs to be upgraded beforehand. There are two ways to upgrade, one is to compile the installation through source code, and the other is to upgrade the RPM package directly.Here you choose to use the source code to compile the way1. Solve the dependency relationshipYumgroupinstall-y "Development Tools" "Server platformdevelopment"Yuminstall-y Pcre-develDownload packageapr-1.5.0.tar.bz2apr-util-1.5.3.tar.bz2httpd-2.4.25.tar.bz2(1) Comp
Article Title: Making Apache websites faster. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
The performance improvement of Apache 2.0 is the most attractive. on Unix systems that support POSIX Threads, Apache can use different MPM to run in a mix of multi-process and multi-thread modes to enhance the scalability
needs a newer version of apr and apr-util, so it needs to be upgraded in advance.
There are two ways to upgrade: One is through source code compilation and installation, and the other is to directly upgrade the rpm package.
--> Here we select to compile the source code.
1). Install the pcre-devel package (Development Kit)-> the httpd-2.4.9 compilation process also depends on the pcre-devel package, needs to be installed in advance, this software package system CD comes:
2. Install apr and apr
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.