原创 Ubuntu16.04 配置mongodb開機自啓動
1、安裝mongodb 參閱官方文檔:https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ 安裝完成後,官方給的啓動,停止,重啓命令分別爲: sudo s
原创 解決gunicorn+flask不能接收chunked的數據
經測試單獨使用flask(1.0.2版本)的時候,使用request.stream.read()能夠獲取到Transfer-Encoding爲chunked的數據。 當使用gunicorn後,request.data值爲空,不能獲取到ch
原创 ubuntu16.04 pip安裝Flask-MySQLdb時出現OSError: mysql_config not found
解決方案: sudo apt-get install libmysqlclient-dev
原创 CentOS7 配置CentOS-Base.repo文件內容
文件位置:/etc/yum.repos.d/CentOS-Base.repo 二選一 1、中科大(參考地址:http://mirrors.ustc.edu.cn/help/centos.html#) # CentOS-Base.repo
原创 conda command
【conda】 1.Create a new environment and install a package in it. We will name the environment snowflakes and install the
原创 將python文件編譯成so
本文以Linux系統(Ubuntu)爲例,講解如何將自己的Python程序(.py文件)加密爲.so文件。 首先,我們需要在Ubuntu系統中安裝一些準備工具,包括python3-dev,gcc,Cython,其中Cython爲Pytho
原创 部署Gunicorn
來源:http://docs.gunicorn.org/en/stable/deploy.html 因爲Gunicorn很容易受到拒絕服務攻擊,強烈建議使用nginx部署 Nginx示例配置文件 nginx.conf worker_pr
原创 ubuntu下載鏡像地址(華爲和阿里雲)
華爲: http://mirrors.huaweicloud.com/repository/ubuntu-releases/ 阿里雲: http://mirrors.aliyun.com/ubuntu-releases/
原创 SuSE Linux Enterprise Server 11 源碼編譯安裝nginx-1.14.2
相關資源包下載地址:https://download.csdn.net/download/yan4413/10935558 一、依賴包準備 openssl-1.0.2q.tar.gz pcre2-10.32.tar.gz zlib-1.2
原创 SuSE Linux Enterprise Server 11 源碼編譯安裝mysql5.6.43
參考博文:http://blog.51cto.com/10759919/2155412 一、依賴包有tack、ncurses-devel、bison 二、二進制安裝cmake-3.13.3-Linux-x86_64 下載地址:https:
原创 redhat中安裝oneinstack遇到的問題總結
1、由於公司服務器是內網,不能正常訪問外網。故使用了代理的方式訪問外網 代理配置方式:/etc/yum.conf 文件中添加一行 proxy=http://1.2.3.4:5555 /et
原创 nginx服務器中配置SSL證書
server { listen 443; server_name www.yxk.cn yxk.cn; access_log /data/wwwlogs/www.yxk.cn_nginx.log combined; in
原创 wrk服務器性能測試
轉載地址:http://zjumty.iteye.com/blog/2221040 測試先行是軟件系統質量保證的有效手段. 在單元測試方面, 我們有非常成熟的 xUnit 方案. 在集成測試方面, 我們 selenium 等自動化方案.
原创 GET與POST的重大區別
GET和POST還有一個重大區別,簡單的說:GET產生一個TCP數據包;POST產生兩個TCP數據包。長的說:對於GET方式的請求,瀏覽器會把http header和data一併發送出去,服務器響應200(返回數據);而對於POST,瀏覽
原创 PHP實現快速排序
學習了一下快排,用PHP嘗試寫了一下,不足之處望指正。<?php $n = 500; $numbers = array(); //隨機生成500個數,數組索引從1開始