<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>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                1. 下載項目 2. 后臺app和admin spring boot項目分別打成jar包,上傳至服務器指定目錄 >java打包跳過測試命令: mvn clean install -Dmaven.test.skip=true 3. 后臺vue項目build為靜態文件 npm run build:prod,上傳至服務器指定目錄 4. 運行后臺啟動腳本 deploy.sh: > 注意:地址要改成自己的 ``` # 檢查程序是否在運行 is_exist(){ # 獲取PID PID=$(ps -ef |grep ${APP_NAME} | grep -v $0 |grep -v grep |awk '{print $2}') # -z "${pid}"判斷pid是否存在,如果不存在返回1,存在返回0 if [ -z "${PID}" ]; then # 如果進程不存在返回1 return 1 else # 進程存在返回0 return 0 fi } # 停止進程函數 stop(){ is_exist if [ $? -eq "0" ]; then kill -9 ${PID} echo "${APP_NAME} process stop, PID=${PID}" else echo "There is not the process of ${APP_NAME}" fi } # 定義啟動程序函數 start(){ is_exist if [ $? -eq "0" ]; then echo "${APP_NAME} is already running, PID=${PID}" else nohup java -jar /home/ceres/app/${APP_NAME} --spring.profiles.active=dev > app.log 2>&1 & PID=$(echo $!) echo "${APP_NAME} start success, PID=$!" fi } # 應用名稱 APP_NAME=ceres-app-server-1.0.jar echo "======啟動=======" cd /home/ceres/app stop start ``` 5. nginx配置 ``` #user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; #log_format main '$remote_addr - $remote_user [$time_local] "$request" ' # '$status $body_bytes_sent "$http_referer" ' # '"$http_user_agent" "$http_x_forwarded_for"'; #access_log logs/access.log main; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; #gzip on; server { listen 443 ssl; ssl_certificate cert/zkthink.crt; ssl_certificate_key cert/zkthink.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; charset utf-8; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE; ssl_prefer_server_ciphers on; server_name ceres.zkthink.com; underscores_in_headers on; client_max_body_size 100M; location / { proxy_pass http://localhost:8764/; } location /app/ { proxy_pass http://localhost:8765/app/; } location /ceres-jobs-server/ { proxy_pass http://localhost:8767/ceres-jobs-server/; } location /admin-web { proxy_set_header Host $host:$server_port; proxy_redirect off; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_connect_timeout 60; proxy_read_timeout 600; proxy_send_timeout 600; root /home/ceres/ceres-admin-web; index index.html; } location /merchant-web { proxy_set_header Host $host:$server_port; proxy_redirect off; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_connect_timeout 60; proxy_read_timeout 600; proxy_send_timeout 600; root /home/ceres/ceres-merchant-web; index index.html; } # 文件訪問配置 location ^~ /file { if ($request_uri ~* ^.*\/(.*)\.(apk|java|txt|doc|pdf|rar|gz|zip|docx|exe|xlsx|ppt|pptx|jpg|png)(\?fileName=([^&]+))$) { add_header Content-Disposition "attachment;filename=$arg_attname"; } root /home/ceres/upload; index index.html; } } } ```
                  <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>

                              哎呀哎呀视频在线观看