192.168.200.120 |
nginx、php-fpm、phpshe |
192.168.200.127 |
mariadb |
nginx配置
[root@nginx ~]# vim /etc/nginx/conf.d/phpshe.conf
server {
listen 80;
server_name www.shop-phpshe.org;
root /code/phpshe;
location / {
index index.php;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
[root@nginx phpshe]# systemctl reload nginx.service
代码包解压、授权
[root@nginx ~]# mkdir /code/phpshe
[root@nginx phpshe]# cd /code/phpshe/
[root@nginx phpshe]# yum -y install unar.x86_64
[root@nginx phpshe]# unar phpshe1.8.rar
[root@