- 浏览: 252382 次
- 性别:
- 来自: 北京
-
最新评论
-
Orc3Ming:
哦,脚本的解释路径,不是注释。
RHEL6.4更改为CentOS6.4的yum源 -
Orc3Ming:
将第一行 #!/usr/bin/python 修改为 #!/u ...
RHEL6.4更改为CentOS6.4的yum源 -
anniecharlotte:
请问:如果登录某个节点
执行nodetool ring查看集群 ...
Cassandra集群 -
Q_Qkings8:
给了我好的提示,已经成功的解决了问题
Eclipse Debug Source not found for -
kevin.wang:
feijin1981 写道我也有同样的问题,但是Window ...
Eclipse Debug Source not found for
文章列表
yum -y install gcc+ gcc-c++
--安装gcc(./configure用到)----------
yum -y install gcc
-------------------------------
1.查看openssl安装包
[root@localhost ~]# rpm -aq|grep openssl
2.安装
yum install openssl -y
yum install openssl-devel -y
3.重新编译python
mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/*.repo.bak
# 删除原有的yum包
rpm -qa | grep yum|xargs rpm -e --nodeps
# 下载CentOS的yum安装包
ftp://mirror.switch.ch/pool/4/mirror/scientificlinux/6.5/x86_64/os/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm
ftp://ftp.is.co.za/mirror/smeserver/releases/testing/9.0 ...
1.创建配置文件:
echo_supervisord_conf > /etc/supervisord.conf
2.修改配置文件
A.添加应用
[program:listen] //listen应用名称
command=python /home/listen/app.py -log_file_prefix=/home/listen/log/longpoll.log
directory=/home/listen //执行command的目录
autorestart=true
redirect_stderr=true
B.打开web控制台
[inet_http_server ...
supervisor 安装
- 博客分类:
- 高可用性
1.
安装依赖包
a. setuptools (latest) from http://pypi.python.org/pypi/setuptools.
(pypa-setuptools.tar.gz)
b. meld3 (latest) from http://www.plope.com/software/meld3/
(http://pkgs.fedoraproject.org/repo/pkgs/python-meld3/)
c. elementtree (latest) from http://effbot.org/downloads#elementtree.
python se ...
1. ip设置
ifconfig eth0 192.168.14.10 netmask 255.255.255.0
2. gateway
route add default gw 192.168.1.1(立即生效)
或者
vi /etc/sysconfig/network(重启后生效)
GATEWAY=192.168.0.1
3. dns
修改/etc/resolv.conf(修改后可即时生效)
4. hostname
vi /etc/sysconfig/network
HOSTNAME=hos
5.ip
DEVICE=et ...
1.安装python
wget http://python.org/ftp/python/2.7.2/Python-2.7.2.tgz
tar -zxvf Python-2.7.2.tgz
cd Python-2.7.2
./configure --prefix=/usr/local/python27
make
make install
mv /usr/bin/python /usr/bin/python_old
ln -s /usr/local/python27/bin/python /usr/bin/
2.下载 source code http://nodejs.org ...
1. 安装PostgreSQL9.1
vi /etc/yum.repos.d/CentOS-Base-16repo
在[base] and [updates] sections 加上exclude=postgresql*
2获取并安装软件包
cd /root/tmp/
wget http://yum.postgresql.org/9.1/redhat/rhel-5-i386/pgdg-redhat91-9.1-5.noarch.rpm
rpm -ivh pgdg-redhat91-9.1-5.noarch.rpm
3安装PostgreSQL
yum list postgres*
yum i ...
nginx.conf
- 博客分类:
- 高可用性
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
use epoll;
}
http {
include mime.types;
default_type application/octet-stre ...
安装rabbitmq
- 博客分类:
- 中间件
1. ERLANG
找到原安装目录:如/usr/lib/erlang
将该文件夹备份
mv -rf /usr/lib/erlang /tmp/erlang_bak
http://www.erlang.org/download.html
下载SourceFIle
tar -xvf otp_src_R14B04.tar.gz
cd otp*
./configure --prefix=/usr
By default, Erlang/OTP will be installed in /usr/local/{bin,lib/erlang}.
To instead install in < ...
参考http://my.oschina.net/chenlei123/blog/128299
1.安装zlib
wget http://zlib.net/zlib-1.2.8.tar.gz
cd zlib-1.2.8
./configure --prefix=/usr/local
make && make install
解压
2.安装pcre
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.33.tar.gz
解压
3.安装nginx
wget http://nginx.org/downl ...
进行长连接压力测试,测试过程中发现已建立的连接断开,
查看logs/error.log中有
2014/02/21 13:54:33 [alert] 389#0: worker process 390 exited on signal 9
2014/02/21 14:17:06 [alert] 3352#0: worker process 3355 exited on signal 9
查看内核信息(dmesg):
Out of memory: Killed process 3355 (nginx).
系统内存不可用导致进程挂掉。
WebService CXF 获取请求IP
- 博客分类:
- Web
方法一:
@Resource(name = "org.apache.cxf.jaxws.context.WebServiceContextImpl")
private WebServiceContext context;
HttpServletRequest httpRequest1 = (HttpServletRequest)context.getMessageContext().get(AbstractHTTPDestination.HTTP_REQUEST);
LogConsole.info("ip:" + httpReque ...
http://blog.csdn.net/willfcareer/article/details/7049710
1.抓包
iptrace -d 22.188.20.137 -p 51017 -b trace.log
2.杀掉抓包进程
kill -9 进程号
3.解析抓包日志
ipreport trace.log > t.log
4.查看日志
vi t.log
-----------------------------
linux下可使用tcpdump抓包
tcpdump tcp port 80
tcpdump ip src 117.136.44.5 -l >a.log