v*a
2 楼
1)Let's say you know a process called "test" is running, and listening on a
TCP port for clients to connect over the network. How would you figure out
what port number it is listening on?
2)You have encountered a linux system that does not have any swap space
configured on it. How can you add swap space to the system while it runs?
What do you need to do to ensure that after a reboot the system retains the
newly-added swap space?
谢谢
TCP port for clients to connect over the network. How would you figure out
what port number it is listening on?
2)You have encountered a linux system that does not have any swap space
configured on it. How can you add swap space to the system while it runs?
What do you need to do to ensure that after a reboot the system retains the
newly-added swap space?
谢谢
c*j
4 楼
lsof, netstat
different unix has different command to do this, but they all can make a
file and use it for swap (see mkfile, dd, swap, swapon etc.)
http://www.cyberciti.biz/faq/linux-add-a-swap-file-howto/
different unix has different command to do this, but they all can make a
file and use it for swap (see mkfile, dd, swap, swapon etc.)
http://www.cyberciti.biz/faq/linux-add-a-swap-file-howto/
P*5
5 楼
唉。可怜的娃们。
v*a
6 楼
1)Let's say you know a process called "test" is running, and listening on a
TCP port for clients to connect over the network. How would you figure out
what port number it is listening on?
2)You have encountered a linux system that does not have any swap space
configured on it. How can you add swap space to the system while it runs?
What do you need to do to ensure that after a reboot the system retains the
newly-added swap space?
谢谢
TCP port for clients to connect over the network. How would you figure out
what port number it is listening on?
2)You have encountered a linux system that does not have any swap space
configured on it. How can you add swap space to the system while it runs?
What do you need to do to ensure that after a reboot the system retains the
newly-added swap space?
谢谢
T*l
8 楼
a
the
【在 v*******a 的大作中提到】
: 1)Let's say you know a process called "test" is running, and listening on a
: TCP port for clients to connect over the network. How would you figure out
: what port number it is listening on?
: 2)You have encountered a linux system that does not have any swap space
: configured on it. How can you add swap space to the system while it runs?
: What do you need to do to ensure that after a reboot the system retains the
: newly-added swap space?
: 谢谢
D*e
10 楼
1) netstat -antp | grep `ps -eaf | grep test | awk '{print $2}' | head -n
1`
or use lsof to list out the fd
2) man swapon
1`
or use lsof to list out the fd
2) man swapon
相关阅读
Please HELP on hexdumpRe: [转载] Unix C 求教: 怎么样把一个c程序compile成lib/下的 .a, .so文件NIS slave servers[转载] how to debug multi-threaded program?simple unix questionA CVS question/devices/pci@1f,0/CDE unlock log大侠救命—— #include <time.h> ERROR!![转载] Pthread Multiprogramming请问大侠,该使用qt 还是 gtk ?a problememacs里怎么把两个eps图并排放在一起呀?[转载] LAN 问题请教FreeBSD下能装中文xim吗?Mount cdrom failure最后问一个activate terminalChinput搞不定了How much memory do I have?菜鸟求教了