oj部署配置記錄

2021-10-08 02:37:30 字數 693 閱讀 5977

# 如果python版本<=3.5 django-q 注意版本

# werkzeug== 0.16.0

# 安裝 redis, memcached

sudo apt install autoconf bison flex gcc g++ openjdk-8-jdk git libprotobuf-dev libtool make pkg-config protobuf-compiler

sudo apt install libnl-route-3-dev libnfnetlink-dev libnl-3 libnl-route-3

# 啟動專案之前先啟動redis

redis-server

# 安裝memcached 並啟動

memcached -m 512 -p -11211 -vv

# 執行判題機目錄下指令碼 密碼同判題機設定,預設使用者名稱numer

sudo ./run.sh

# 啟動判題機

python flask_server.py

# 啟動django集群

python manage.py qcluster

# 啟動django伺服器

python manage.py runserver 0.0.0.0:****(埠號 並在配置檔案中的allowed_hosts新增ip)

洛谷OJ記錄

記錄一哈刷洛谷的一些技巧和函式 萬能標頭檔案 include 它幾乎包含了你能用到的所有標頭檔案。include include include include include include include include include include include include inclu...

記錄 MOSS EventHandler部署和使用

1.利用feature來實現eventhandler與splist的繫結 public class featurereceiver spfeaturereceiver catch exception ex public override void featuredeactivating spfeat...

django部署記錄 Nginx uWSUI

專案是用django做的,還算順利,到現在執行有兩個多月了。當時nginx還是在0.8.x系列,django也沒有用現在的1.3,不過其實python編 挺好玩的 uwsui jinjia2 1安裝python2.6.6 wget tar xvjf python 2.6.6.tar.bz2 cd p...