Apr292012
为ubuntu服务器安装gnome图形桌面
Ubuntu服务器安装图形界面最简单的就是用下面的命令安装整个桌面版的ubuntu,但不建议在服务器上使用此方法,因为安装桌面相关软件太多。当然也可以安装后再删除。我是个人测试PC上安装server版ubuntu,然后再装个桌面。
sudo aptitude install ubuntu-desktop
或
sudo apt-get install ubuntu-desktop
安装过程中间会让你选择桌面类型,gmd 和 lightdm,我选择的lightdm。
LightDM是什么?...阅读全文
抢沙发
Apr292012
[转]安装php时报gd相关的错误gd_ctx.c
转自:http://blog.csdn.net/hzcyclone/article/details/7493051
在安装php时,报如下错误
In file included from /kk/php-5.4.0/ext/gd/gd.c:103:
/kk/php-5.4.0/ext/gd/gd_ctx.c: In function ‘_php_image_stream_putc’:
/kk/php-5.4.0/ext/gd/gd_ctx.c:51: 错误:‘struct gdIOCtx’ 没有名为 ‘data’ 的成员
/kk/php-5.4.0/ext/gd/gd_ctx.c: In function ‘_php_image_stream_putbuf’:
/kk/...阅读全文
Apr282012
Apr282012
TCP Close 流程
TCP CLOSE流程
特征
u 发送一个FIN报文表示结束本端数据的发送,但是还可以接收数据,称之为半关闭
u TCP是一个全双工的协议,两端全部close才完成了一个连接的关闭;
u 首先发起close(发送FIN),我们称之为主动关闭,对端的close我们称为被动关闭;
u 同时关闭;
半关闭
发送一个FIN报文表示结束本端数据的发送,继续接收对端发送的数据的状态,我们称之为半...阅读全文
作者:woyoo | 分类:network | 阅读:81 浏览数 |
Apr282012
Apr122012
某网游公司招聘运维工程师
职位描述:
负责生产网络、服务器、数据库与支撑系统的建设、运维和监控,保证各业务系统正常运营;
负责公司门户网站与webgame服务器的搭建、运维、监控
负责对突发事件的快速响应和处理,排除故障;
负责对现有业务系统的架构与性能改善
改进自动化运维系统,提高工程师工作效率
职位要求:
计算机或相关理工科专业专科或以上学历,为人真诚正直;
精通Linux/Unix操作系统管理及优化
...阅读全文
Mar132012
SecureCRT反空闲-SecureCRT自动断开
但是在secureCRT上登录时,发现经常的断开,很是郁闷,所以baidu了一下,呵呵,好多人都遇到过这种问题。我也贴一下,方便记忆。
有时候服务器端的 /etc/profile 或者 ~/.bash_profile 中设置了 TMOUT 选项,或者是 /etc/ssh/sshd_config 文件中设置了客户端连接时间的设置,很可能一段之间之后,SecureCRT就会被断开连接,所以SecureCRT又一个选项可以设置每隔多少秒自动发 送一个信息到服...阅读全文
作者:woyoo | 分类:linux | 阅读:256 浏览数 |
Mar122012
[转]linux中将进程放后台执行
转自:http://www.ibm.com/developerworks/cn/linux/l-cn-nohup/
Linux下进程放入后台执行几种方法:
1. nohup
顾名思义,nohup的用途就是让提交的命令忽略所有的hangup信号。
使用方法:nohup COMMAND [ARG]…
nohup 示例
[root@pvcent107 ~]# nohup ping www.ibm.com &
[1] 3059
nohup: appending output to `nohup.out'
[root@pvcent107 ~]# ps -ef |grep 3059
root 3059...阅读全文
Mar082012
linux安装Zend Guard
This article applies to:
[ Zend Studio for Eclipse 6.x, Zend Studio 5.x, Zend Guard 5.x ]
[ Linux ]
Symptom
Two types of problems have been reported:
Installation is successful with normal user account but fails when run as superuser (root).
Installation fails resulting an a JRE error.
Error messages
Preparing to install…
Extracting the J...阅读全文
Mar042012
[转]haproxy+mysql slave多从库负载均衡带故障检测
haproxy+mysql slave多从库负载均衡带故障检测V1.1
Author:gaojinbo
Time:2010-9-15
使用haproxy对mysql slave进行负载均衡,故障检测
环境:
haproxy 192.168.3.100
vip db_read 192.168.3.140
db1 master 192.168.3.141
db2 slave1 192.168.3.142
db3 slave2 192.168.3.143
一、安装配置主从数据库,同步数据库为gaojinbo_www
master上操作
1)修改配置
vi /etc/mysql/my.cnf
server-id =...阅读全文
Mar042012
Redis配置文件参数说明
Redis配置文件参数说明:
1. Redis默认不是以守护进程的方式运行,可以通过该配置项修改,使用yes启用守护进程
daemonize no
2. 当Redis以守护进程方式运行时,Redis默认会把pid写入/var/run/redis.pid文件,可以通过pidfile指定
pidfile /var/run/redis.pid
3. 指定Redis监听端口,默认端口为6379,作者在自己的一篇博文中解释了为什么选用6379作为默认端口,因为6379在手机按键...阅读全文
Mar042012
Linux下检测服务是否正常
转自:http://blog.sina.com.cn/s/blog_4dd475390102e8wd.html
Linux下检测服务是否开启,如果服务没有开启,则会自动开启脚本。
方法一:通过检测进程
[root@51itrz ~]# vi nginxjc.sh
#!/bin/sh
while true
do
sn=`ps -ef | grep nginx | grep -v grep |awk '{print $2}'`
if [ "${sn}" = "" ]
then
/usr/local/nginx/sbin/nginx &
fi
sleep 5
done
以上脚步用于对nginx的检测,如...阅读全文
作者:woyoo | 分类:shell | 阅读:277 浏览数 |
Feb082012
nginx 反向代理https http
tomcat端口:8080 做好虚拟主机 参照我的另一篇文章
nginx端口:80 根据域名分派
在conf/nginx.conf中的http中增加:
include www.huozhe.com.conf
新建conf/www.huozhe.com.conf,内容如下:
server {
listen 80;
server_name www.huozhe.com;location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host:80;
proxy_set_header X-Real-IP $remote_addr;
proxy...阅读全文
Feb082012
linux ssl
mkdir ssl
cd ssl
openssl genrsa -des3 -out server.key 1024 # 会提示你输入key,尽可能长些复杂些,后面好几处要用,我都是复制粘贴的
openssl req -new -key server.key -out server.csr # 输入组织信息 CN BeiJing HaiDian huozhe.com
cp server.key server.key.org
openssl rsa -in server.key.org -out server.key
openssl x509 -req -days 365 -in server.csr -signkey server.key...阅读全文
Jan162012
Dec252011
SecureCRT同时向多个session发送相同命令的方法
对于要管理多台服务器的SA或DBA来说, 如果要在所有服务器上操作同样的命令, 一台台登陆操作是个很笨的方法. 一直以为SecureCRT没有这个功能, 曾经转向使用有该功能的Xshell软件, 但是Xshell又没有横向滚动条, 让人不爽, 所以就好好研究了一下SecureCRT, 原来是可以的.
1. 首先在SecureCRT里同时打开多个session
2. 从菜单栏选上 View – Chat Windows
3. 在Chat Windows右键鼠标, 选上...阅读全文
Dec222011
Nginx 访问控制
1. Nginx 身份证验证
#cd /usr/local/nginx/conf
#mkdir htpasswd
/usr/local/apache2/bin/htpasswd -c /usr/local/nginx/conf/htpasswd/tongji linuxtone
#添加用户名为linuxtone
New password: (此处输入你的密码)
Re-type new password: (再次输入你的密码)
Adding password for user
http://count.linuxtone.org/tongji/data/index.html(目录存在/data/www/wwwroot/tongji/data/目录下)...阅读全文
Dec142011
nginx log_format日志配置
1、配置文件
#vim /usr/local/services/nginx/conf/nginx.conf
log_format access ‘$remote_addr – $remote_user [$time_local] “$request” ‘
‘$status $body_bytes_sent “$http_referer” ‘
‘”$http_user_agent” $http_x_forwarded_for’;
include /usr/local/nginx/conf/vhost/*.conf;
2、vhost中配置
#vim /usr/local/services/nginx/con...阅读全文