Manage multi-django servers for debugging on one pc
来源:互联网 发布:小年糕软件下载 编辑:程序博客网 时间:2024/06/12 01:11
These days we are developing a demo project to implement our new protocol. As it needs four servers and one client to simulate the evironment to test the protocol, we build the server projects with the django framework. Since I should test the whole flow first in my own pc, I need to run the four servers in the same time.
Firstly, I run the django project with command 'manage.py runserver'. Yeah, the project can be run, but when I entry the url in the browser, it comes out error notes that some modules cannot be found. Strangely, the project works well if using the eclipse to debug or run. The probability reason, it cannot link the modules which is not located in the same location of 'manag.py' when we start the server with these commands in the terminal.
Then, I come up with an idea, maybe we can start the server with the commad in the eclipse. Here is the steps. Right click the django project -> Django -> Custom Commad, and input the commad. BTW, the django project with start with the port 8000 by default. If you want to let the project start with different port, please try ' runserver port'. Ok. Now you can start multi-django servers on one pc. Here, you may encounter the case that you cannot shut down the server. One directly method is using the kill command in the terminal. Command 'ps -A' just list all the processes, but you cannot know which one is the server's. You can check the port with command 'sudo netstat -nap|grep port', then you can find the related process. Finally, just need to use command 'kill processid' to kill the process.
- Manage multi-django servers for debugging on one pc
- Manage multi-SSH KEY For One Mac
- Linux Debugging 4 - Primer on PC Architecture
- Tips for debugging on Linux
- All about Eve: Execute-Verify Replication for Multi-Core Servers
- Debugging Memory Leaks on Android (for Beginners)
- [转]Scaling Enterprise Java on 64-bit Multi-Core X86-Based Servers
- [转]Scaling Enterprise Java on 64-bit Multi-Core X86-Based Servers
- Django-manage.py
- Django-manage.py
- Notes for debugging LCD based on msm8930 and orise
- 1 pc 2 tomcat servers
- Django--manage.py命令大全
- 编写Django自定义manage命令
- Django 自定义manage.py 命令
- On Pairwise Costs for Network Flow Multi-Object Tracking
- django 中 django-admin & manage.py
- How to Cluster Magento, nginx and MySQL on Multiple Servers for High Availability
- 读完《重构》的一些感想
- group by 子句
- VC中Debug和Release出错的问题解决办法
- MySql常用命令
- JAVA模板技术
- Manage multi-django servers for debugging on one pc
- js 全选 全不选 反选 提交
- Android硬件抽象层(HAL)概要介绍和学习计划
- Altium Designer 覆铜时过孔连接形式的设置——只将过孔连接设置为Direct Connect
- 数据挖掘-——Data Mining(3)
- 计算广告学体系
- 跟我一起写 Makefile
- time_t 与 tm结构
- ActiveMQ多个消费者进程,出现类似死锁阻塞 源于 .receive(1000)