Use FPM tool to create an RPM package
This rpm package is made using the fpm tool, and FPM is very easy to use. This command can make the installation and uninstallation of the rpm package more elegant. You can make some preparati
You will need to package the files in the following situations: avoid duplication of work, package the source code for RPM use Yum to publish the project, package for RPM, package your own program for RPM, and provide users with the download of other
Using FPM, packing RPM i
://softlayer.dl.sourceforge.net/sourceforge/mcrypt/libmcrypt-2.5.8.tar.gzTAR-ZXVF libmcrypt-2.5.8.tar.gzcd/usr/local/src/libmcrypt-2.5.8./configure--prefix=/usr/localMakeMake install7. php-fpm 5.4.7 How do I turn off reboot? PHP-FPM in PHP 5.4.7 no longer supports commands such as/USR/LOCAL/PHP/SBIN/PHP-FPM (Start|stop|reload) that php-
When using the Saltstack deployment, we relied on the company's own RPM package, the compiled parameters, the scripts that were started to be customized, and then the RPM package into the company's own Yum repository. The way to make RPM package many Checkinstall spec files, FPM use is very simple, mainly introduced un
crash should be very normal.Therefore, the number of PHP-FPM processes should be controlled as much as possible, and when the memory used by other applications is generally clear, assigning a small amount of static to it will make the system more stable. Or use dynamic mode,Because the dynamic way will end the redundant process, can reclaim some memory, so it is recommended to use on the server or VPS with less memory. The specific maximum number is
With the development of the Internet, some Internet enterprises, even the traditional enterprise servers are more and more. One of the challenges that will be faced is automated operations management. Suppose we need to automate the deployment of a lot of applications, and these applications are complex, many processes, and require source installation. Even if you can do this with automation, it's pretty cumbersome to configure. So now there is a technology can be installed in the source code of
This article link address: http://blog.csdn.net/screscent/article/details/53409554This article QQ space blog link address: http://user.qzone.qq.com/29185807/blog/1480415468
It used to be a test for RPM packaging. The program you write now needs to be packaged yourself.It was packed with rpmbuild, but it was always inconvenient.
So he found the FPM tool. The following summarizes the use of the
1. Experimental Requirements:1) CentOS 7, AMP + xcache, rpm package, php-fpm;A) httpd, PHP, MARIADB are deployed separately on a separate host;b) One virtual host provides WordPress, another virtual host provides; phpMyAdminc) Providing HTTPS services to Phpmyadmim;2. Experimental environment:1) Server EnvironmentLinux Server OS version: CentOS release 6.7 (Final)HTTP) ip:172.16.66.60PHP-
machines on the line, the remove script is more conservative in writing.Packaging with the FPM commandFpm-f-p/search/jingliyang/myrpm/-S dir-t rpm-n php-desktop-specialformaxueyong-rh6.x86_64--epoch 0-v 7.0.13-c/US r/local/php7/--verbose--description'php-desktop-specialformaxueyong-7.0.12.rh6.x86_64'--url'http://php.net/manual/zh/index.php'-M'php-7.0.12'-D'Libxml2-devel'-D'LIBXML2'-D'Bzip2-devel'-D'Libcurl
; with--before-install--post-uninstall: The script to run after the package uninstallation is complete; with--offer-remove--pre-uninstall: The script to run before the package uninstallation is complete; with-before-remove--prefix: Make the RPM package default installation path;Details: fpm-h4 supported target type packages:RPM: Convert to RPM PackageDeb: Convert
= /usr/share/nginx/html;2 Configuring Php-fpm.confPhp-fpm.conf is php-fpm the configuration file for the process service:######设置错误日志的路径error_log = /var/log/php-fpm/error.log######引入www.conf文件中的配置include=/usr/local/php7/etc/php-fpm.d/*.conf3 Configuring Www.conf (in the PHP-FPM.D directory)Www.conf This is the php-fpm extended configuration file for process serv
CentOS 7, based on RPM Package installation Deployment APM (PHP-FPM) + XCache;A) httpd, PHP, MARIADB are deployed separately on a separate host;b) A virtual host to provide phpMyAdmin, another virtual host to provide WordPress;c) Providing HTTPS services to Phpmyadmim;First, the environment configuration:Turn off the firewall and set SELinux:Use httpd+fastcgi to achieve consolidation:The 1.php-5.3.3+ versio
Lab Requirements:1, CentOS 7, NPM rpm package, php-fpm;A) a virtual host to provide WordPress, another virtual host to provide phpmysamin;b) Providing HTTPS services to Phpmyadmim;
Lab Environment:Linux Server OS version: CentOS Linux release 7.2.1511 (Core) ip:172.16.252.113WIN7 System client: ip:172.16.250.100
Experimental Prerequisites:1) Turn off firewall and SELinux~]# Service Iptables Stop~]#
51, php-fpm Pool, php-fpm slow execution log, Open_basedir, PHP-FPM process ManagementFirst, the pool of PHP-FPMPool: Right. The right-most column of PS aux. It's the pond.# CD/USR/LOCAL/PHP-FPM/ETC# cat php-fpm.conf//supports defining multiple pools[Global]PID =/usr/local/php-fpm
PHP-FPM ConfigurationUnlike lamp, in the LNMP architecture, PHP-FPM exists as an independent service, and since it is an independent service, he has his own configuration file. The configuration file for PHP-FPM is/usr/local/php-fpm/etc/.Pool (pool) of PHP-FPMNginx support multiple virtual hosts, PHP-FMP also support t
12.21 PHP-FPM's PoolPHP-FPM has a concept called pool, that is, the right side of the Psaux to see the column, that is, its pool,For example, here we define only a poolIn fact, he is supporting the definition of multiple pools, each pool we can listen to different sock, or different tcpip, so if our nginx has several sites each site can use a different pool, the advantage is one of the php502, other sites do not affect, (502 probably not enough PHP re
One, PHP-FPM pool (configure multiple pools with multiple isolation sites)#cd/usr/local/php-fpm/etc/#vim php-fpm.conf//Add configuration file to the second site aming.com, [www] and [aming.com] in the configuration file are equivalent to two different pools#/usr/local/php-fpm/sbin/php-fpm-t//Check for grammatical error
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.