centos7 安裝禪道(v11.4)

1.安裝phpphp

rpm -Uvh https://dl.fedoraproject.org/...
rpm -Uvh https://mirror.webtatic.com/y...html

yum -y install php72w php72w-cli php72w-common php72w-devel php72w-embedded php72w-fpm php72w-gd php72w-mbstring php72w-mysqlnd php72w-opcache php72w-pdo php72w-xmlmysql

systemctl start php-fpmnginx

2.下載禪道源碼,解壓放到/opt目錄下web

3.配置nginx
server {sql

listen 80;
server_name www.xuejiayuan.net;瀏覽器

location / {php7

root /opt/zentaopms/www;
index index.php index.html index.htm;php-fpm

}
location ~ .php$ {
root /opt/zentaopms/www;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}.net

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}

}

4:配置
瀏覽器中打開:https://www.xuejiayuan.net

按上面命令使用,若是發現無效,執行以下命令再試試:

setenforce 0

相關文章
相關標籤/搜索