【环境配置】Popush工程在Linux下的配置
来源:互联网 发布:国外网络手游 编辑:程序博客网 时间:2024/06/10 17:37
Popush Deployment (Linux)
Deploy Result
Environment
Operating System: Linux Mint 17 (Qiana)Cinnamon 64bit
Cinnamon Version: 2.2.16
Linux Kernel: 3.13.0-24-generic
If You Don't Have a Linux yet
1. First of all, choose a Linuxdistribution (Linux发行版), instruction:http://en.wikipedia.org/wiki/Linux_distribution
·Linux Mint is currently the most popular one, and particularly convenient forprogrammers. You can download it fromhttp://www.linuxmint.com/download.php
Linux Mint 17Qiana
*If you want to getthe most beautiful Linux, and do not care whether convenient, we suppose you touseElementary OS:http://elementaryos.org/
2. After getting the iso file of Linux distribution, we'dstrongly recommand that you install it on aVirtual Machine instead of instantly on your computer. For VirtualMachines,VMware workstation is agood choice. Download it and add a Virtual Machine, and install your linux onit.
Downloads
Item
Version
Website
Remarks
gdb
7.8*
http://www.gnu.org/software/gdb/
python
2.7.8/3.4.1
https://www.python.org/downloads/
2.7's already contained
jdk
8u20
http://www.oracle.com/technetwork/java/javase/downloads/index.html
lua
5.2.3
http://www.lua.org/download.html
mongodb
2.6.4
http://www.mongodb.org/downloads
ncurses
5.9
ftp://invisible-island.net/ncurses/
gcc & g++
use apt-get install**
nginx
1.7.6
http://nginx.org/
node.js
v0.10.32
http://nodejs.org/download/
PCRE
8.36
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
perl
5.20.1
https://www.perl.org/get.html
already contained
readline
6.3
ftp://ftp.gnu.org/gnu/readline/
ruby
2.1.3
https://www.ruby-lang.org/ja/downloads/
termcap
1.3.1
http://ftp.gnu.org/gnu/termcap/
zlib
1.2.8
http://www.zlib.net/
Popush
https://github.com/liuq880077/popush
*All these sources are .tar.gz files, extract them under Linux.
**Ctrl+Alt+T to open the Terminal, input these commands:
suapt-get install g++
"su" is the abbreviation of "super user", and youshould enter your password. After this, please follow the instructions on thescreen.
Installation
0. How to install a usual .tar.gz pack under Linux
·Extract thepack ("在此处展开")
·Open theterminal under the new folder ("在终端中打开")
·Type thesecommands:
su./configuremakemake install
1. Install g++
suapt-get install g++
2. Install Nginx
·Copy thefolder of zlib-1.2.8 and pcre-8.36 to nginx-1.7.6
·Open theterminal
su./configure -with-pcre=pcre-8.36 -with-zlib=zlib-1.2.8makemake install
·Test: OpenFirefor/Chrome and turn to http://127.0.0.1, like this:
suapt-get install g++
3. Install Node.js
·Test:
nodeconsole.log("helloworld!");
4. Install GDB
·Installtermcap first
·Install GDB
·Test:
gdb -v
5. Install Ruby
·Test:
ruby -v
6. Install Lua
·Installreadline first
·Then installncurses
·Open thepath: lua-5.2.3/src , edit the file Makefile:
line105, 106:
linux:$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline -lncurses"
·Open theTerminal:
make linux
·Back to thefolder lua-5.2.3 , type:
sudo make install
·Test:
lua -v
7. Install JDK
·Extract (andrename) to /usr/local/jdk
·Open theTerminal and type the commands:
sudo gedit ~/.bashrc
·(In thegedit) Add these text after the file:
export JAVA_HOME=/usr/local/jdkexport JRE_HOME=${JAVA_HOME}/jreexport CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/libexport PATH=${JAVA_HOME}/bin:$PATH
·Open theTerminal:
source ~/.bashrc
·Test:
java -version
8. Install Mongodb
·It's adatebase
·Extract mongodb-linux-x86_64-2.6.4.tgz , and changethe new folder's name intomongodb
·Here openthe Terminal:
sumv mongodb /usr/local/mongodb2cd /usr/local/mongodb2/binmkdir -p /data/db/journalchmod -R 777 /data/db/
·To start the Mongodb:
./mongod --quiet -journal -maxConns=1000 -rest --logpath /data/db/journal/mongodb.log
9. POPUSH!
·Move thefolder to /popush, open it
·In theTerminal:
sudo make deploy
·Change thefiles:
Run
1. Start the Mongodb
2. Start the Popush
3. Open the website of Popush
·Type localhost in your browser
·Test:
1.Register
2.Login
3.Add file "hello world.js"
4.Type console.log("Helloworld!"); and run
·Test otherprogramming languages like this
Problems
1. Cannot connect the server (无法连接至服务器)
·Restart allservices
2. Internal Error (内部错误)
·CheckMongodb
3. (In the Popush)Cannot create new file
·Replace thefolder mongojs and the file socket.io.js
4. (While running a code)Return error EACCES
·I couldn'tfind where the mistake is. After I restarted the Linux, the error fixed.
- 【环境配置】Popush工程在Linux下的配置
- 【环境配置】Popush工程在Windows下的配置
- windows环境下的popush配置—陈章政
- Linux下配置Popush——陈键
- Linux下配置 配置J2EE工程环境
- Linux环境下的Popush部署——张凯
- Ubuntu 14.04下配置popush—丁雨亭
- openfire在windows环境和linux环境下的配置
- 在linux环境下配置SeetaFace环境
- VC6环境下的OMNet工程配置
- MQTT在linux下环境下的编译与配置
- 在Cygwin环境下配置Linux内核的问题
- SVN服务端在Linux环境下的安装和配置
- 在linux下配置nginx+java+php的环境
- Unix环境高级编程在linux下的源码配置
- matlab2012b在linux下并行环境主机的配置
- Linux下Hbase在eclipse上的hadoop环境配置
- 在linux下配置nginx+java+php的环境
- 笔试题目解答
- SETI--后缀数组
- iOS开发 剖析网易新闻标签栏视图切换(addChildViewController属性介绍)
- 深入理解 HashMap 加载因子 loadFactor
- 通用基础的CSS样式
- 【环境配置】Popush工程在Linux下的配置
- Android 接收蓝牙耳机按键操作
- 缺陷管理系统相关技术文章收集
- mysql使用
- 【iOS开发-31】UITabBar背景、icon图标颜色、被选中背景设置以及隐藏UITabBar的两种方式
- java实现二叉树的先序、中序和后序迭代器
- 题目1432:叠筐 题目15
- ostringstream, istringstream and ostream
- 大端模式和小端模式