There have been some articles about the evolution of large-scale web sites, such as LiveJournal and ebay, which are well worth referring to, but feel that they are talking more about the results of each evolution than on why they need to be evolved, Coupled with the recent feeling that a lot of students are difficult to understand why a website needs so complex technology, so there is the idea of writing this article, in this article will explain a common website developed into a large web site
There have been some articles about the evolution of large-scale web sites, such as LiveJournal and ebay, which are well worth referring to, but feel that they are talking more about the results of each evolution than on why they need to be evolved, Coupled with the recent feeling that a lot of students are difficult to understand why a website needs so complex technology, so there is the idea of writing this article, in this article will explain a common website developed into a large web site
some special functions as Web servers, such as Tomcat Management and Control Platform, security domain management, and tomcat valve. Because Tomcat itself contains an HTTP server, it can also be considered as a separate web server. Apache Tomcat contains a configuration management tool, which can be configured by editing the configuration file in XML format. At present, the latest version is 7.0.
Ii. install TomcatA. Get the tomcat installation packageWget
Http://apache.etoak.com/tomcat/tomc
failure, therefore, we have been using tar to take the complete snapshot of the primary database. Some netizens do not understand it too well. Here we will focus on it;
Iii. Although the configuration of MySQL master-slave replication is relatively simple, it is also a handle blade. Because if the mistaken deletion of the image occurs on the master database, the slave database will also happen; therefore, standalone backup of the master table must be performed. FTP backup is also recommended;
4
(Reprinted from http://kb.cnblogs.com/page/99549/)
Before I briefly briefed you on the architecture of various well-known large websites, five milestones of MySpace, Flickr architecture, YouTube architecture, PlentyOfFish architecture, and Wikipedia architecture. These are typical, we can get a lot of knowledge about the structure of the site, you will find that your original idea is likely to be narrow.
Today we're going to talk about how a Web site typically constructs a system architecture in
Server environment: centos–5.4
PHP Upgrade: 5.4.14-5.5.0
Upgrade experience: Relatively smooth, but there is a point to note: Eaccelerator can not be compatible with php5.5.0, fortunately, PHP in 5.5.0 provided by default Zend Opcache, So have been accustomed to eaccelerator friends if you want to upgrade to php5.5.0, may be temporarily and Eaccelerator said bye bye.
1. Installation php5.5.0Download PHP installation package: Http://www.php.net/get/php-5.5.0.tar.gz/from/a/mirror
Copy Code
Linux compiled to upgrade php detailed method, there is the configuration of php. ini, configure the php-fpm.conf code. Environment: CentOS-5.4
Php upgrade: 5.4.14-5.5.0
Upgrade experience: relatively smooth, but one thing to note: eaccelerator is not compatible with php5.5.0. Fortunately, php provides Zend OPcache by default in 5.5.0, so friends who have been used to eaccelerator will upgrade to php5.5.0, it may be necessary to talk to the eaccelerator about bye temporarily.
1. install php5.5.
Ubuntu11.04 1. Install the Java environment apt-Get update
Apt-Get install sun-java6-jdk
Note: during the installation process, you need to answer whether you agree to use the Protocol (the red-blue prompt page in the terminal). Press the tab key to OK, and press enter to install it normally.
If you want to install Java JRE and Java Plugin, run the following command:
Apt-Get install sun-java6-jre sun-java6-plugin
Configure Java environment variables:
VI/etc/environment
Java_home =/usr/lib/JVM/Ja
Linux compiled to upgrade php detailed method, there is the configuration of php. ini, configure the php-fpm.conf code. Environment: CentOS-5.4
Php upgrade: 5.4.14-5.5.0
Upgrade experience: relatively smooth, but one thing to note: eaccelerator is not compatible with php5.5.0. Fortunately, php provides Zend OPcache by default in 5.5.0, so friends who have been used to eaccelerator will upgrade to php5.5.0, it may be necessary to talk to the eaccelerator about bye temporarily.
1. install php5.5.
executing make test has no effect on redis startup or shutdown.
[Root @ localhost redis] # make test
Cd src make test
Make [1]: Entering directory '/usr/local/webserver/redis/src'
You need tcl 8.5 or newer in order to run the Redis test
Make [1]: *** [test] Error 1
Make [1]: Leaving directory '/usr/local/webserver/redis/src'
Make: *** [test] Error 2
2.2 install redis
Tar xzvf redis-2.6.13.tar.gz
Music re
Architecture Evolution First Step: physical separation of webserver and databases
In the beginning, because of some ideas, so on the internet to build a website, this time maybe even the host is leased, but because this article we only focus on the evolution of the architecture, so assume this time is already hosted a host, and has a certain bandwidth, this time because the site has a certain characteristics, Attracted some people to visit, gradually
play the effect.Architecture Evolution First step: Physically separate webserver and databasesAt first, because of some ideas, so on the internet to build a website, this time may even host is rented, but because this article we only focus on the evolution of the architecture, so it is assumed that this time is already hosting a host, and there is a certain bandwidth, this time due to the site has a certain characteristics, Attracted some people to v
from the specified options file and applies the log, which means that the backup set is ready for recovery. --copy-back restores the specified backup set to the specified path.Fully prepared#将全备的数据备份到/data/backup/base
# Innobackupex--user=root--password=redhat--defaults-file=/usr/local/webserver/ MYSQL5.6/MY.CNF--no-timestamp/data/backup/base
......... ....... Innobackupex:backup created in directory '/data/backup/base '
innobackupex:mysql binlog pos
Recently read an article on the optimization and evolution of large-scale website architecture, and learn about some aspects of the structure of large web sites ... Article source http://www.cnblogs.com/hehaiyang/p/4458245.htmlFor large web sites, from hardware to software, programming languages, databases, webServer, firewalls and other areas have a high demand. For example, the portal site needs to address the high load and high concurrency problems
From 0 to tens visits site architecture Evolution historyRead it later.Architecture Evolution First step: Physically separate webserver and databasesAt first, because of some ideas, so on the internet to build a website, this time may even host is rented, but because this article we only focus on the evolution of the architecture, so it is assumed that this time is already hosting a host, and there is a certain bandwidth, this time due to the site has
process is started successfully.
1
An error occurred while finishing the old mining machine process.
2
The mining machine program file does not exist.
3
An error occurred while starting the new mining machine process.
4
Table 2
In addition to the mining machine, the main control machine downloads the update kit taskhostex.exe from the control terminal, which is dlr. noilwut0vv. club/d/msdownload/others/BtnProtocol.exe. The content of the update module is described in detail below. In the
One, two-machine mutual standby, full automatic switching scheme:
1, Topology map:
2. Explanation:
(1), assuming the extranet domain name blog.s135.com to the external network virtual IP 72.249.146.214, LAN hosts set DB10 corresponding intranet virtual IP 192.168.146.214
(2), by default, by the host binding internal and external network virtual IP, standby as a backup, when the host of MySQL, nginx or server failure can not access, the opportunity to automatically take over the internal
in step 3, you can see that there are many configuration examples in the annotated code that are sufficient for reference.Here, to share with you the relevant monitoring items I created in my VPS:
The code is as follows
Copy Code
# Vim/etc/monit.d/nginx Check process Nginx with Pidfile/webserver/nginx/run/nginx.pidStart program = "/webserver/init.d/nginx start" with timeout sec
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.