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
this architecture is basically not required by the technical knowledge system.Step 2 of Architecture Evolution: add page CacheThe good news is not long. As more and more people access the database, you find that the response speed starts to slow down again. Looking for the reason, you find that there are too many operations to access the database, which leads to fierce competition in data connection, resulting in slow response, however, the database connection cannot be opened too much. Otherwi
Installing NginxYum installation Reference http://nginx.org/en/linux_packages.htmlCompile and install NginxThe system first installs the gcc* package and some dependent packages[email protected] tool]# wget http://nginx.org/download/nginx-1.8.0.tar.gz[Email protected] tool]# tar XF nginx-1.8.0.tar.gz-c/usr/local/src/[Email protected] tool]# cd/usr/local/src/nginx-1.8.0/[Email protected] nginx-1.8.0]#Note: Each version is different, the module installed by default may varyFor details, refer to th
[Root @ lee mbstring] #/usr/local/webserver/php/bin/phpizeProcessing ING:PHP Api Version: 20090626Zend Module Api No: 20090626Zend Extension Api No: 220090626[Root @ lee exif] #./configure -- with-php-config =/usr/local/webserver/php/bin/php-config[Root @ lee mbstring] # make make installInstalling shared extensions:/usr/local/webserver/php/lib/php/extensions/no
@ lee mbstring] #/usr/local/webserver/php/bin/phpizeProcessing ING:PHP Api Version: 20090626Zend Module Api No: 20090626Zend Extension Api No: 220090626[Root @ lee exif] #./configure -- with-php-config =/usr/local/webserver/php/bin/php-config[Root @ lee mbstring] # make make installInstalling shared extensions:/usr/local/webserver/php/lib/php/extensions/no-debu
Bytes
Http://nginx.org/en/download.html
Http://php-fpm.org/
Compile and install Linux NginxTar zxvf nginx-0.6.35.tar.gz cd nginx-0.6.35/
Default installation:./configure make make installBy default, Nginx is installed in/usr/local/nginx. You can change this setting by setting the compilation option.
Specify compilation options for installation, such:./Configure -- user = www -- group = www -- prefix =/usr/local/webserver/nginx -- with-http_stub_statu
============= optimization of large-scale website Architecture =====================A small website, such as personal website, can use the simplest HTML static page to achieve, with some pictures to achieve beautification effect, all the pages are stored in a directory, such a site on the system architecture, performance requirements are very simple, with the Internet business is constantly enriched, Website related technology After these years of development, has been subdivided into very fine
In CentOS 5.4 Linux, PHP (FastCGI) needs to connect to the SQL Server 2000 database of the relevant department and configure the extended FreeTDS extension.
1. Compile and install FreeTDS
mkdir-p/data0/software/
cd/data0/software/
wgetftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/stable/freetds-stable.tgz
tarzxvffreetds-stable.tgz
cdfreetds-0.82/
./configure--prefix=/usr/local/webserver/freetds--with-tdsver=8.0--enable-msdblib
m
/home_page/downloads.phpThe downloaded decompression is placed in the/library/webserver/documents/directory, the complete directory is:/library/webserver/documents/phpmyadmin/, then the command line into this directory,Re-enter the command: Follow the changes below:$cfg [' blowfish_secret '] = ';//for Cookie encryption, random long string $cfg[' Servers ' [$i] [' host '] = ' 127.0.0.1 ';//mysql daemon does
database, there are netizens are not too understanding, here is the key note
Third, the MySQL master and slave copy although the configuration is relatively simple, but also is the hilt blade sword; Because if the error deletes the table phenomenon in the main library, also can take place from the library, therefore the primary table's stand-alone backup must make, recommended also makes the FTP backup;
Four, Binlog log must be opened, signed in the strict production environment, this post we
Phpize
The Phpize command is used to prepare the compilation environment for the PHP Extension library. In the following example, the source program for the extension library is in the Extname directory:
$ cd extname
$ phpize $/configure $ make
# Install
A successful installation will create the extname.so and place it in the PHP Extension Library directory. You need to adjust php.ini to join the extension=extname.so to use this extension library.
If there is no phpize command in the system an
based applications developers feel the need to share the session state with other domains.
The other domain may is a sister concern of the same company, or May is the business-to-business partner. So the question
Arises how one can share the sessions variables across other domains easily and safely.
Sharing Session variables using ASMS
Configure ASMS
Sharing session variables across domains are very easy using ASMS. ASMS Standard and Advanced both
Support Sharing Session variables. Lets a
above two, our environment was basically set up.
2) Create your own project
As I described in my article, "What exactly is snappy Ubuntu?", the current development on snappy supports a lot of languages and architectures. We can choose a language we are familiar with and develop it on top. In today's exercise, we use Golang as an example. In fact, snappy is implemented in Golang language. I created a directory of my own files and created our project. For convenience, we have chosen a proj
, you can see a content of "It works!" Page, which is located under/library (Resource Library)/webserver/documents/, which is the default root directory for Apache. NOTE: When Apache is turned on, "web sharing" is turned on, and the networked user accesses the "/library (repository)/webserver/documents/" directory via "http://[local ip]/", http://[local ip]/ ~[user Name] "To access the/users/[user name]/si
% ';
+ ---------------------- + ------- +
| Variable_name | Value |
+ ---------------------- + ------- +
| Innodb_fast_shutdown | 0 |
+ ---------------------- + ------- +
1 row in set (0.00 sec)
1. Stop the current MySQL Service
Service mysqld stop
2. Link to the new MySQL directory
Cd/opt/webserver/
Unlink mysql
Ln-sv mysql-5.5.34-linux2.6-x86_64 mysql
3. Start the service
Service mysqld start
4. Execute update program upgrade
/Opt/
In the PHP world there are many development frameworks, such as Laravel, thinkphp, etc., but no matter what the general framework, they are in the same mode of processing Web requests, this article first elaborated the PHP Development Web application Basic architecture, The processing flow of laravel and thinkphp in processing Web Requests is then analyzed separately.
PHP's basic architecture for developing Web applications
When PHP develops a Web application, the request needs to point to the
Nginx+lua+openresty Installation1, installation dependentYum install Libreadline-dev Libncurses5-dev libpcre3-dev Libssl-dev perl2, download ngx_openresty-xxx.tar.gz and unzip (the Ngx_openresty-xxx/bundle directory contains Nginx core and many third-party modules, such as the LUA and Luajit we need. )wget https://openresty.org/download/ngx_openresty-1.9.7.2.tar.gzTar xvf ngx_openresty-1.9.7.2.tar.gzCD ngx_openresty-1.9.7.23, install LuajitCD bundle/luajit-2.1-20151219/Make clean make make ins
Compile php5.4 and add extensions after installation
Today because the development needs php5.4 no corresponding RPM package, so only download the source package compiled
Download php5.4 Package: wget http://cn2.php.net/get/php-5.4.8.tar.gz/from/this/mirror
Tar zxvf php-5.4.8.tar.gz
PHP modules should not be installed at the time of compilation, so as not to upgrade trouble later,
./configure--prefix=/usr/local/webserver/php \??????? --with-zlib \??
installing php and MySQL on the Linux CentOS system, you must add the php and mysql commands to the system commands for ease of use, when you run the "php-v" command to view the current php version information, an error indicating that the command does not exist will be prompted, next we will introduce in detail how to add php and mysql to environment variables in linux (false php and mysql are installed in/usr/local/webserver/php/and/usr/respectivel
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.