1024programmer PHP Rpm installs phpfpm, linuxrpm installs phpfpm, mysql, nginx and assembles ftp

Rpm installs phpfpm, linuxrpm installs phpfpm, mysql, nginx and assembles ftp

1. If there is no ftp software, directly install and run the following program:

yum -y install vsftpd

chkconfig vsftpd on

The installation has the following error :

Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was

14: PYCURL ERROR 6 – “Couldn’t resolve host 'mirrorlist.centos.org'”

Error: Cannot find a valid baseurl for repo: base

p>

Because of the lack of DNS , the solution is as follows : configure resolv.conf in the /etc directory and add nameserver IP :

[root@localhost ~]# vi /etc/resolv.conf

#The following address is Fujian Telecom DNS

nameserver 218.85.157.99

2. Command

Start vsftpd : service vsftpd start

Stop vsftpd: service vsftpd stop

Restart vsftpd: service vsftpd restart

1. Install nginx+php+mysql

wget http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm //Download rpm file

rpm -ivh nginx-release-centos-6-0.el6.ngx.noarch.rpm //Unzip

rpm -qa | grep nginx Check whether nginx is added to the source path

Install php mysql nginx

yum install mysql mysql-server php php-mysql php-fpm nginx

If the source address cannot be found, Please find the updated third-party source library in the tips

yum install php-cli php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-mcrypt php-mssql php-snmp php-soap php-tidy php-common php-devel

For separate installation, please refer to the following

1.1. Install php-fpm separately service

yum install -y php php-mysql php-gd libjpeg* php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-mcrypt php-bcmath php- mhash libmcrypt libmcrypt-devel php-fpm

#Start php-fpm

/etc/rc.d/init.d/php-fpm start

Settings Automatic start

chkconfig php-fpm on

1.2. Install mysql separately

Install MYSQL

yum -y install mysql mysql-server

Start mysql

service mysqld start

chkconfig mysqld on #Set to boot

Set password for root account

mysql_secure_installation

Restart all services

service mysqld restart

service nginx restart

/etc/rc.d/init. d/php-fpm restart

The test is successful

2. Install the svn client

yum install subversion

Get the code &#xff1a ;

svn checkout path

svn update //Go to the acquisition directory ,update code

3. Add service self-start

nginx service

chkconfig –add nginx

chkconfig nginx on

service nginx start

php-fpm

chkconfig –add php-fpm

chkconfig php-fpm on

service php-fpm start

mysql

chkconfig –add mysqld

chkconfig mysqld on

service mysqld start

4. Uninstall the software

yum remove httpd

yum remove mysql

yum remove php

5. Firewall configuration

Modify the file /etc/sysconfig/iptables

[root& #64;bogon ~]# cd /etc/sysconfig/

[root@bogon sysconfig]# vi iptables

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/rpm-installs-phpfpm-linuxrpm-installs-phpfpm-mysql-nginx-and-assembles-ftp/

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: 34331943@QQ.com

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索