<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                本系統所需環境 php7.1^+Mysql5.6^+apache/nginx+ redis(可選) ## 集成環境 (以寶塔面板等為例) ~~~ 站點設置 ? # 注意,網站目錄設置到src 才可以開啟防跨站攻擊 ? 網站目錄 /path/to/shirnecms/src ? 運行目錄 /public ? ? 偽靜態 選擇thinkphp 保存即可 ? ? PHP版本 7.2以上 點擊切換 ? ? 域名管理及其它根據需要設置 ~~~ ## 手動安裝(yum) apache和mysql 在centos7以上的版本中, 系統默認的版本可滿足需求, 不需要自行編譯或改源 ### apache ~~~ # 需要ssl模塊安裝 yum install httpd httpd_ssl ? # 加入開機啟動 systemctl enable httpd ? # 立即啟動 stop/restart 停止/重啟,修改了配置文件需要重啟 systemctl start httpd ~~~ ### nginx nginx+php-fpm環境 php安裝增加php-fpm ~~~ yum --enablerepo=remi-php72 install php-fpm ~~~ 啟動php-fpm及加入開機啟動 ~~~ # start/stop/status/restart systemctl start php-fpm ? systemctl enable php-fpm ~~~ 安裝nginx ~~~ yum install nginx ~~~ 啟動nginx及加入開機啟動 ~~~ systemctl start nginx ? systemctl enable nginx ~~~ nginx配置 ~~~ server { ? ? ? listen ? ? ? 80; ? ? ? server_name localhost; # 你的域名 ? ? ? index index.html index.htm index.php; ? root ? /path/to/ShirneCMS/src/public; ? ? location / { ? ? ? if (!-e $request_filename) { ? ? ? ? ? rewrite ^/(.*)$ /index.php/$1 last; ? ? ? ? ? break; ? ? ? } ? } ? ? location ~ \.php ? { ? ? ? #fastcgi_pass unix:/tmp/php-cgi.sock; ? ? ? fastcgi_pass 127.0.0.1:9001; ? ? ? fastcgi_index index.php; ? ? ? include ? fastcgi_params; ? ? ? set $real_script_name $fastcgi_script_name; ? ? ? if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") { ? ? ? ? ? set $real_script_name $1; ? ? ? ? ? set $path_info $2; ? ? ? } ? ? ? fastcgi_param SCRIPT_FILENAME $document_root$real_script_name; ? ? ? fastcgi_param SCRIPT_NAME $real_script_name; ? ? ? fastcgi_param PATH_INFO $path_info; ? } } ~~~ ### mysql (mariadb) ~~~ yum install mariadb mariadb-server ? # 開機啟動 systemctl enable mariadb ? # 啟動 systemctl start mariadb ? # 配置 (命令打一半可按tab自動識別) mysql_secure_installation # 輸入命令按回車后需要幾個步驟 # 第一步需要當前密碼,新安裝的一般是空的,直接回車 # 第二步是否設置新密碼, 要輸兩遍確認 # 然后就是禁止root的遠程連接,以及其它一些安全配置, 一路按 y即可 ~~~ ### php php需要設置安裝源, 默認的是5.6的版本,不建議使用 ~~~ # remi源 yum install epel-release yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm yum install yum-utils ? # 安裝php yum --enablerepo=remi-php72 install php # 安裝php模塊 yum --enablerepo=remi-php72 install php-xml php-soap php-xmlrpc php-mbstring php-json php-gd php-bcmath php-pdo php-cli php-ssl php-pecl-redis ~~~ ## 初始化操作 ###建數據庫及用戶 ~~~ create database `數據庫名` default character set utf8mb4; -- 添加本機用戶 create user 用戶名@'localhost' identified by '密碼'; -- 添加遠程用戶 create user 用戶名@'%' identified by '密碼'; ? -- 授權數據庫 GRANT ALL PRIVILEGES ON 數據庫.* TO '用戶名'@'localhost'; ? -- 刷新權限 FLUSH PRIVILEGES; ~~~ ### 配置web站點(virtualhost) ~~~ <VirtualHost *:80> DocumentRoot /path/to/shirnecms/src/public ServerName www.域名.com ServerAlias 域名.com Options +ExecCGI php_admin_value open_basedir "/path/to/shirnecms/src/:/tmp/" <Directory /path/to/shirnecms/src/public/> Options -Indexes +FollowSymlinks ? AllowOverride All ? Require all granted ? </Directory> </VirtualHost> ~~~ 最后將新建的數據庫名及用戶,密碼修改到 源碼/config/database.php中 重啟apache 從命令行或web界面安裝系統即可
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看