那些日子里

记录生活的点滴

Archive for the ‘学习’ Category

Linux下Firefox is already running, but not responding解决方法。

without comments

该问题出现主要是由于Linux多用户登录,或者用户异地登录出现死锁导致的。
Windows下参考 这里

Linux下当重启电脑不能解决时可以使用如下命令,删除主目录下的几个文件


rm -f `find $HOME/.Mozilla -name lock`
rm -f `find $HOME/.Mozilla -name sessionstore.js`
rm -f `find $HOME/.Mozilla -name .parentlock`

进一步的,可以重命名/usr/lib/firefox/firefox-bin 文件为/usr/lib/firefox/firefox-bin.org,修改/usr/lib/firefox/firefox-bin为:

#!/bin/bash
# /usr/lib/firefox/firefox-bin script
if ! [ `id -u` = 0 ]
then
chmod -R 777 $HOME/.mozilla/
find $HOME/.mozilla -name lock > /dev/null 2>&1
if [ $? = 0 ]
then
rm -f `find $HOME/.mozilla -name lock` 2> /dev/null
rm -f `find $HOME/.mozilla -name sessionstore.js` 2> /dev/null
rm -f `find $HOME/.mozilla -name .parentlock` 2> /dev/null
fi
fi

/usr/lib/firefox/firefox-bin.org $*

使得此问题再次出现时,能在后台自动解决。

Reference

Written by huotuotuofly

三月 7th, 2012 at 7:24 上午

Posted in Linux,学习

数据库存储过程的使用和delimiter用法

without comments

Written by huotuotuofly

五月 21st, 2011 at 9:57 上午

Posted in 学习

深入字符编码(一)

without comments

写了一个很简单的jsp页面,从数据库中取出联系人的个人信息(编号、姓名、电话),完成显示修改删除等操作。逻辑很快就完成了,结果页面显示一直是乱码,并且过程中还出现了这样那样的问题。本文就此说说俺解决问题时学到的知识和获得的经验。

Read the rest of this entry »

Written by huotuotuofly

五月 19th, 2011 at 8:56 上午

Posted in 学习

Tagged with , ,

一个简单web服务器的实现

without comments

原理:模拟telnet 80实现。原理详细见这里

执行 ./webserv 1234,然后在浏览器中输入: http://hostName:1234 /可查看结果。

终端可查看请求消息。不了解HTTP头消息的参见这里

Read the rest of this entry »

Written by huotuotuofly

四月 2nd, 2011 at 2:59 上午

Posted in Linux,学习,未分类

堆和栈的区别

without comments

Written by huotuotuofly

三月 17th, 2011 at 3:44 上午

Posted in 学习,转载

Linux下telnet验证HTTP协议的头信息

without comments

Written by huotuotuofly

三月 12th, 2011 at 3:09 上午

Posted in Linux,学习

关于HTTP协议头部(一)

without comments

Http(Hyper Text Transfer Protocal)是超文本传输协议,它用于网页间传送数据,http采用的是请求、响应模型,也就是说浏览器和Web服务器之间的交互(http事务)包括浏览器发起的一个请求和随后服务器返回的一个响应。请求和响应本质上是文本流,客户端和服务器端把它们解释为首部和紧随其后的主体部分。

Read the rest of this entry »

Written by huotuotuofly

三月 12th, 2011 at 1:45 上午

Posted in Linux,学习

Linux常用命令举例

with 3 comments

Written by huotuotuofly

一月 12th, 2011 at 3:22 上午

Posted in Linux,学习

Chrome+Freegate+Switchy实现自动代理切换

with 4 comments

一直苦于chrome下不能实现类似于firefox下autoProxy的自动切换代理功能(墙内网站禁用代理而访问墙外网站时自动启用代理)。直到前几天找到了Switchy~

Read the rest of this entry »

Written by huotuotuofly

十二月 25th, 2010 at 8:17 上午

Posted in 学习,生活

Tagged with

Linux学习笔记——问题汇总

with 2 comments

Written by huotuotuofly

十二月 22nd, 2010 at 3:21 上午

Posted in 学习

Tagged with