tipask 3.5问答系统部署说明,超详细命令行部署,挂载iso,可内网使用。
生活随笔
收集整理的這篇文章主要介紹了
tipask 3.5问答系统部署说明,超详细命令行部署,挂载iso,可内网使用。
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
前提環(huán)境
? ? 基本要求:WEB服務(wù)器 : Nginx ,PHP 5.5.9及以上,MySQL 5.0 及以上。
? ? PHP擴(kuò)展要求:OpenSSL PHP 擴(kuò)展 - PDO PHP 擴(kuò)展 - Mbstring PHP 擴(kuò)展 - Tokenizer PHP 擴(kuò)展
????
| 名稱 | 版本 |
| PHP | 7.1.33 |
| mysql | 5.6.48 |
| nginx | 1.16.1 |
? ? ? ??一、安裝前準(zhǔn)備工作:
1、請檢測一下服務(wù)器運(yùn)行環(huán)境確保能夠支持tipask3.5的正常運(yùn)行。
2、創(chuàng)建新的數(shù)據(jù)庫:請?jiān)?/span>mysql數(shù)據(jù)庫中創(chuàng)建一個名稱為tipaskx的數(shù)據(jù)庫,編碼是utf-8,準(zhǔn)確說是utf8_general_ci。
?
二、部署安裝:
以下為linux命令整理。
?修改配置:vi: /etc/selinux/config 修改屬性 SELINUX=disabledmkdir -p /mnt/centos7mount /dev/cdrom /mnt/centos7mkdir /etc/yum.repos.d.bakmv? /etc/yum.repos.d/* /etc/yum.repos.d.bak/vi /etc/yum.repos.d/CentOS7.repo#修改內(nèi)容如下[CentOS7]name=CentOS7? ISObaseurl=file:///mnt/centos7enable=1gpgcheck=0yum clean all && yum listmkdir /date? 將soft.tar.gz、mysql.tar.gz、nginx.tar.gz放到date下tar zxvf soft.tar.gzmv soft phpcd phpyum localinstall *.rpm -y#修改php-fpm配置文件(/etc/php-fpm.d/www.conf ),將用戶修改為nginxuser=nginxgroup=nginxmkdir /home/rootcd /date/unzip tipask.zip# 操作命令(修改用戶組權(quán)限、修改相關(guān)目錄讀寫權(quán)限): [root@localhost tipask]# chown -R nginx:nginx tipask [root@localhost tipask]# chmod -R 775 tipask/bootstrap/cache tipask/storagevi /etc/nginx/conf.d/tipask.conf # 根據(jù)情況修改 端口 ip 我的配置如下server { listen 80; server_name 192.168.136.131; #配置的站點(diǎn)域名,根據(jù)實(shí)際域名自行調(diào)整 set $domain public; set $project_root /home/wwwroot/tipask; root $project_root/$domain; charset utf-8; #access_log /home/wwwroot/tipask/storage/tipask.access.log combined; #需要查看訪問日志的可以去掉注釋 #error_log /home/wwwroot/tipask/storage/tipask.error.log error;#需要查看錯誤日志的可以去掉注釋 if (!-e $request_filename){ rewrite ^/(.*)$ /index.php?$1 last; } location / { index index.php index.html; } # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $project_root/$domain$fastcgi_script_name; include fastcgi_params; } } ###配置文件endsystemctl start nginx.servicesystemctl start mysqldgrep 'temporary password' /var/log/mysqld.logmysql_secure_installation#設(shè)置root密碼后面的按Y#登錄mysql,創(chuàng)建庫mysql -uroot -p123456create database tipaskx charset utf8mb4;[root@localhost wwwroot]# systemctl start php-fpm[root@localhost wwwroot]# systemctl stop firewalld^C[root@localhost wwwroot]# systemctl stop firewalld[root@localhost wwwroot]# systemctl status firewalld#/etc/nginx/conf.d/路徑下[root@localhost conf.d]# systemctl restart nginx?打開瀏覽器,訪問http://192.168.136.131/install
?ip + install 進(jìn)入安裝頁面
總結(jié)
以上是生活随笔為你收集整理的tipask 3.5问答系统部署说明,超详细命令行部署,挂载iso,可内网使用。的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: whatsns与tipask_tipas
- 下一篇: 微信文章如何增加阅读率