# yum -y install yum-plugin-priorities
# sed -i -e "s/\]$/\]\npriority=1/g" /etc/yum.repos.d/CentOS-Base.repo
# yum -y install epel-release
# vi /etc/yum.repos.d/mariadb.repo
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.2/centos7-amd64/
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
# yum -y install MariaDB-server MariaDB-client MariaDB-devel
# systemctl start mariadb && systemctl enable mariadb
# mysql_secure_installation
# yum --enablerepo=epel -y install nginx
# systemctl start nginx && systemctl enable nginx
# yum -y install php-fpm php php-mysql
# yum -y install libmcrypt libmcrypt-devel php-mbstring php-mcrypt php-gd php-xml zlib zlib-devel freetype freetype-devel freetype-utils gd gd-devel libjpeg libjpeg-devel libpng libpng-devel
# systemctl restart php-fpm && systemctl enable php-fpm
# vi /etc/nginx/nginx.conf
server {
~~~
location ~\.php$ {
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
}
# vi /etc/php-fpm.d/www.conf
;listen = 127.0.0.1:9000
listen = /var/run/php-fpm.sock;
# systemctl restart nginx
# systemctl restart php-fpm
# echo "<?php phpinfo() ?>" > /usr/share/nginx/html/phpinfo.php
개발버전으로..
# cp /usr/share/doc/php-common-5.4.16/php.ini-development /etc/php.ini
# systemctl restart php-fpm && systemctl restart nginx
'Linux > CentOS' 카테고리의 다른 글
install jdk 7 (0) | 2017.01.24 |
---|---|
install vsftpd (0) | 2016.11.22 |
특정 동적 라이브러리 지정 방법 (0) | 2016.11.16 |
[CentOS7] Locale (0) | 2016.10.12 |
[CentOS7] groupinstall로 옵션 패키지까지 모두 설치 해야 될 경우 (0) | 2016.10.07 |
최근댓글