Original: Https://github.com/KIDx/ACdream#%E5%AE%89%E8%A3%85%E4%BE%9D%E8%B5%96%E6%A8%A1%E5%9D%97 Installation dependency
sudo apt-sudoinstallsudoinstall make sudoinstall libcairo2-dev libjpeg8-dev libpango1. 0-dev Libgif-dev build-essential
Install node. js
sudo add-apt-repository ppa:chris-lea/sudo apt-sudoinstall Nodejs
Installing the Redis database http://blog.csdn.net/kidx_/article/details/26167091
1, first go to the official website to find the latest stable version of the download link http://redis.io/download, the latest is 2.8.19, and then copy its link.
wget http://download.redis.io/releases/redis-2.8.19.tar.gzcd redis-2.8. + Make Make Install
Default installation to the/usr/local/bin directory
2. Set configuration file path and service
There is already a profile redis.conf in the extracted directory, which is provided in the Utils folder Redis_init_script
sudo mkdir /etc/redissudocp redis.conf/etc/redis/6379. CONFCD utils sudocp redis_init_script/etc/init.d/redis_6379
(The redis_{redisport}.pid inside changed to Redis.pid)
The default configuration file path in the Redis_init_script file is/etc/redis/${redisport}.conf
3. Modify the configuration file
Build the directory before modifying the configuration file
sudo mkdir /var/redissudomkdir /var/redis/6379sudo vim/etc/redis /6379. conf
The following items need to be modified:
Set service as daemon: daemonize Yes
Set log file path: LogFile "/var/log/redis_6379.log"
Set database file path: dir "/var/redis/6379/"
4, check, and then Hello World under
sudo Service redis_6379 Startredis-CLI>set Hello worldok>get Hello" World"
REDIS-CLI Save
Check the following:
To/var/redis/6379/dump.rdb whether there is
See if/var/log/redis_6379.log has content
Installing the MongoDB Database
http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/
sudoApt-key adv--keyserver HKP://keyserver.ubuntu.com:80--recv 7F0CEB10Echo 'Deb Http://downloads-distro.mongodb.org/repo/ubuntu-upstart Dist 10gen'|sudo Tee/etc/apt/sources.list.d/mongodb.listsudoapt-Get updatesudoApt-getInstall-Y mongodb-orgsudoApt-getInstall-Y mongodb-org=2.6.1Mongodb-org-server=2.6.1Mongodb-org-shell=2.6.1mongodb-org-mongos=2.6.1mongodb-org-tools=2.6.1Echo "mongodb-org hold"|sudoDpkg--set-selectionsEcho "Mongodb-org-server hold"|sudoDpkg--set-selectionsEcho "Mongodb-org-shell hold"|sudoDpkg--set-selectionsEcho "Mongodb-org-mongos hold"|sudoDpkg--set-selectionsEcho "Mongodb-org-tools hold"|sudoDpkg--set-selectionssudoService Mongod Start
SVN co https://Github.com/kidx/acdream
Database initialization
-H localhost-d acdream_db--directoryperdb Acdream_db-drop
Installing grunt
sudo npm i-g grunt-cli
Installing dependent modules
sudo npm i
Run the App
$ grunt$ Node App.js
Ubuntu under Quick build Acdream Online Judge v1.5.3