[cng@FSWWW ~]$ drain 'queue_PDF; {mode: browse}'
Wednesday, October 3, 2012
./consumer.rb:7: uninitialized constant Qpid::Connection (NameError)
run ruby qpid error:
ruby code
================================================
#!/usr/bin/env ruby
require "rubygems"
require "qpid"
require "socket"
conn = Qpid::Connection.new(TCPSocket.new("localhost", 5672))
conn.start(10)
#ssn = conn.session("qpid_consumer")
===================================================
error:
./consumer.rb:7: uninitialized constant Qpid::Connection (NameError)
Solution:
[cg@FSWWW ruby]$ sudo yum install ruby-qpid
ruby code
================================================
#!/usr/bin/env ruby
require "rubygems"
require "qpid"
require "socket"
conn = Qpid::Connection.new(TCPSocket.new("localhost", 5672))
conn.start(10)
#ssn = conn.session("qpid_consumer")
===================================================
error:
./consumer.rb:7: uninitialized constant Qpid::Connection (NameError)
Solution:
[cg@FSWWW ruby]$ sudo yum install ruby-qpid
install qpid in ubuntu 12
apt-get install qpidd qpid-tools qpid-doc qpid-client python- qpid-extras-
qmf python-qpid python-cqpid
Thursday, September 27, 2012
php call python script got permission denied
need to disable selinux
vim /etc/selinux/config
SELINUX=disabled
vim /etc/selinux/config
SELINUX=disabled
Wednesday, September 26, 2012
install qpid in centos 6
To install the Qpid Python client library:
# yum install python-qpid
To install the Qpid broker:
# yum install qpid-cpp-server
To start the Qpid broker:
# service qpidd start
To have the Qpid broker started at boot time:
# chkconfig qpidd on
Install qpid-tools
[root@FSWWW ~]# yum install qpid-tools
Install qpid-tools
[root@FSWWW ~]# yum install qpid-tools
OpenVPN can connect, but no LAN Acess
I setup an openvpn, but no LAN access when I connected to VPN
Here is the steps to fix it:
1, logon to openvpn server and check this file
[root@openvpn ~]# cat /proc/sys/net/ipv4/ip_forward
0
2, if it returns 0, that's the root cause. But you cannot modify this file directly.
3, You need change ip_forward to 1 permanent
open file and change net.ipv4.ip_forward to 1 , about line 7:
[root@openvpn ~]# vim /etc/sysctl.conf
# Controls IP packet forwarding
net.ipv4.ip_forward = 1
4, Reboot the server or you can do this to avoid rebooting
[root@openvpn ~]# sysctl -p
[root@openvpn ~]# sysctl -w net.ipv4.route.flush=1
5, reconnect to you VPN
Here is the steps to fix it:
1, logon to openvpn server and check this file
[root@openvpn ~]# cat /proc/sys/net/ipv4/ip_forward
0
2, if it returns 0, that's the root cause. But you cannot modify this file directly.
3, You need change ip_forward to 1 permanent
open file and change net.ipv4.ip_forward to 1 , about line 7:
[root@openvpn ~]# vim /etc/sysctl.conf
# Controls IP packet forwarding
net.ipv4.ip_forward = 1
4, Reboot the server or you can do this to avoid rebooting
[root@openvpn ~]# sysctl -p
[root@openvpn ~]# sysctl -w net.ipv4.route.flush=1
5, reconnect to you VPN
Tuesday, September 25, 2012
openvpn hangs forever
openvpn use 443, 943, and 1194, need to forward all these port in your router.
http://docs.openvpn.net/frequently-asked-questions/
http://docs.openvpn.net/frequently-asked-questions/
"
Short answer: TCP 443, TCP 943, UDP 1194
Long answer: By default OpenVPN Access Server has 2 OpenVPN daemons running. One of them on UDP port 1194 and another on TCP 443. We recommend that you use the UDP port because this functions better for an OpenVPN tunnel. However, many public locations block all sorts of ports except very common ones like http, https, ftp, pop3, and so on. Therefore we also have TCP 443 as an option. TCP port 443 is the default port for https:// (SSL) traffic and so this is usually allowed through at the user’s location.
TCP port 943 is the port where the web server interface is listening by default. You can either approach this directly using a URL like https://yourserverhostnamehere:943/ or by approaching it through the standard https:// port TCP 443, since the OpenVPN daemon will automatically internally route browser traffic to TCP 943 by default. (https://yourserverhostnamehere/).
"
Subscribe to:
Posts (Atom)
-
Step 1, New a project rails new demo Step 2, Update Gemfile add paperclip, mysql2 gem, enable JavaScript runtime gem 'mysql2' ...
-
When trying to access transmission from web-browswer i got the message : 403: Forbidden Unauthorized IP Address. Either disable the IP ad...