The server is LNMP of centos7.0, installed with OneinStack. I found that every problem is basically related to the configuration of these files, so I want to find a standard configuration that can solve the problem at once.
Ask for the standard configuration of the following files
/usr/local/nginx/conf/nginx.conf
/usr/local/nginx/conf/vhost/www.yuming.com.conf
/usr/local/php/etc/php-fpm.conf
/usr/local/php/etc/php.ini
/usr/local/redis/etc/redis.conf
/etc/varnish/default.vcl
yum install --downloadonly --downloaddir=./tmp/ php-fpm php nginx redis varnish
Then unpack it yourself
OneinStack has a manual that explains it very clearly. Just follow it