Posts Tagged linux
How to mount remote windows drive to linux
Posted by shengjie in Tips Everyday on April 21, 2010
To remotely mount your windows driver to linux:
eg. mount d drive,
mount -t cifs -o username=${user},password=${password} //${IP}/d$ /mnt/windowsdriver
t: file system tile (cifs or nfs, ntfs)
o:options
如何结束占用端口的线程
Posted by shengjie in Tips Everyday on May 15, 2009
比如80端口被占用 (qq音乐开机占用我的80或者是8080端口)。如果你不清楚哪个程序在占用你的端口的话。
windows:
netstat -aon //找出哪个线程在占用你的80端口,eg.35454线程在占用80端口。
taskkill /pid 35454 //结束占用80端口的程序,现在80端口就可用了。
linux:
lsof -P | grep 80
kill 35454