Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Ubuntu installation module Python rq     - Upgrade installation manual CentOS6.5 GCC4.8.2 (Linux)

- Linux uses a screen recording under RecordMyDesktop (Linux)

- Vi syntax highlighting settings (Linux)

- MySQL monitoring tool -Innotop (Database)

- Use regular expressions to check whether the input box to enter a URL (Programming)

- VPS xen openvz kvm (Server)

- Ubuntu 14.04 LTS to compile the source code Android4.4.2 (Linux)

- To install Gitolite in Ubuntu / Fedora / CentOS (Linux)

- Linux environment MySQL master-slave synchronization (Database)

- SUSE Linux install Oracle 10g and problem solving (Linux)

- Linux yum command Detailed (Linux)

- Oracle Linux 6.4 (BOND) dual NIC teaming combat - Annotated (Linux)

- Java abstract class instantiation (Programming)

- Linux / proc directory Comments (Linux)

- Get basic information about Linux server script (Server)

- Java, boolean operators & =, | = ^ = use (Programming)

- Linux System Getting Started Learning: Linux how to install 7zip (Linux)

- Linux file permissions chmod chown (Linux)

- MySQL server after an unexpected power outage can not start (Database)

- Common Linux System Troubleshooting (Linux)

  Ubuntu installation module Python rq
  Add Date : 2018-11-21      
  Rq is a third-party Python modules using rq can quickly and easily achieve Python queue operations, distributed architecture to achieve multi-state computer. Wherein R is Redis mean, Q is Queue initials, rq use Redis and Implementation of Distributed Queue, and were achieved Master Worker, by Redis storage tasks queue.

Ubuntu14.04 installation rq

Suppose you have Python installed and pip, this article to install rq by `pip

$ Sudo pip install rq
Install Redis

rq module uses redis save queue information, thereby ensuring that multiple machines simultaneously read from the same queue, that is, a plurality of `worker working at the same time, it also reached our goal. Redis installed in Ubuntu is simple, use the following command to the command to install Redis addition, it will also help you to kindly install redis-cli.

$ Sudo apt-get install redis-server
After the installation is complete, you can try to start at Reids, check whether the installation was successful.

$ Redis-server
The above command will use the default settings to start Redis service, if you see the following beautiful interface start the installation was successful.

But not finished volume, use the following command to see if we can see what

$ Netstat -an | grep 6379

Since Redis default port is 6379, the command to view the listening port 6379 ip, you can see Redis default binding is, you can see in this setting /etc/redis/redis.conf.

The default configuration Redis is bound, commented to bind Then restart Redis.

$ Sudo /etc/init.d/redis-server restart
Executive netstat -an again | grep 6379

You can see the change, Redis already accepted redis cli with a LAN connected

Installation rq-dashboard

rq-dashboard is a rq monitor the status of implementation of the python library, which can display the current which Queue, Queue number for each Job, and how much Worker in working condition, also shows the failure of Job. You can use pip easily install Dashboard.

$ Sudo pip install rq-dashboard
After successful installation, use the following command to start rq-dashboard

$ Rq-dashboard -u "redus: // 6379"
After Redis -u parameter which is required to use the connection address, successfully started you can see the following information

It can be seen Rq dashboard version information, and operating address port, that is, we can access through a browser, the default port is 9181, IP address is the start rq-dashboard machines ip, computer in the same LAN access http: / /, which is start rq-dashboard computer ip.

Rq-dashboard is a useful tool, work status graphically monitor rq, but the fly in the ointment, can not control the worker's job, but I believe it should be to support these functions very quickly.
- The istgt PSD on ported to Mac OS X (Linux)
- Android Studio simple setup (Linux)
- ORA-00020: No more process state objects available (Database)
- Use Visual Studio 2015 to develop Android program (Programming)
- Django1.8 return json json string and the string contents of the received post (Programming)
- MySQL5.7 JSON type using presentation (Database)
- How to install PlayOnLinux 4.2.5 under Ubuntu 14.04 / 12.04 (Linux)
- 10 Best Swift Tutorial examples (Programming)
- MySQL enabled SSD storage (Database)
- Oracle to read and modify the data block process (Database)
- Linux Variable content removal and replacement (Linux)
- Linux stand-alone OGG synchronous Oracle 11g DB test (Database)
- Use eCryptFS encrypt files and directories on Linux (Linux)
- Configuring VMWare FreeBSD9.2 remote debugging kernel source code (Linux)
- git checkout generated in the use of temporary br (Linux)
- Analysis of potential problems through custom Orabbix monitoring Oracle (Database)
- Teach you to diagnose problems with strace (Linux)
- GRUB2 boot Ubuntu Manual (Linux)
- Linux vi command list (Linux)
- Linux ACL permissions (Linux)
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.