首页 » Linux » yum install lnmp

yum install lnmp

 

nginx install

 

visit http://nginx.org/en/linux_packages.html

To set up the yum repository for RHEL/CentOS, create the file named /etc/yum.repos.d/nginx.repo with the following contents:

[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/OS/OSRELEASE/$basearch/
gpgcheck=0
enabled=1

Replace “OS” with “rhel” or “centos”, depending on the distribution used, and “OSRELEASE” with “5”, “6”, or “7”, for 5.x, 6.x, or 7.x versions, respectively.

mysql install

visit website:

http://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/

http://dev.mysql.com/doc/refman/5.7/en/linux-installation-yum-repo.html

 

download mysql yum repository

 

rpm -ivh *.rpm

install the newest :

yum install mysql-community-server

 

if you want to install other version,you can do this:

yum repolist all|grep mysql
yum-config-manager --disable mysql57-community
yum-config-manager --enable mysql56-community

php install 

you can visit this website:

https://webtatic.com/packages/php56/

and install php yum repository

last you can install and you can look the website which is can install.

yum install php56w  php56w-bcmath php56w-cli php56w-common php56w-fpm php56w-gd  php56w-mysqlnd php56w-pdo php56w-mbstring php56w-mcrypt php56w-devel

 

原文链接:yum install lnmp,转载请注明来源!

0