由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - 问两个问题
相关主题
帮我看看我的GCC怎么了!谢谢网络编程如何进行错误处理
help: solaris interface configurationAsking for help on TCP server programming
如何在KDE下实现权限的限制?Which TCP/IP book is better?
How to send packet on a chosen interface?THX!Is it possible to bind several sockets to 1 port?
who knows how to use nslookup?这几个网络模拟软件哪个比较好啊?
a socket questionTCP throughput: What does it mean?
求救: 我的EXCEED怎么不工作了? 有办法解决么?Outbound interface: What the heck does it mean?
问一个通过socket 获得request source IP的问题A Question about TCP Spec
相关话题的讨论汇总
话题: swap话题: space话题: system话题: listening话题: what
进入Unix版参与讨论
1 (共1页)
v*******a
发帖数: 14
1
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?
谢谢
c****j
发帖数: 258
2
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/
v*******a
发帖数: 14
3
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?
谢谢
T**********l
发帖数: 12149
4

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
发帖数: 9
5
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 (共1页)
进入Unix版参与讨论
相关主题
A Question about TCP Specwho knows how to use nslookup?
command line socket toolsa socket question
[转载] 问一个协议状态检测的问题求救: 我的EXCEED怎么不工作了? 有办法解决么?
紧急求助! 问一个通过socket 获得request source IP的问题
帮我看看我的GCC怎么了!谢谢网络编程如何进行错误处理
help: solaris interface configurationAsking for help on TCP server programming
如何在KDE下实现权限的限制?Which TCP/IP book is better?
How to send packet on a chosen interface?THX!Is it possible to bind several sockets to 1 port?
相关话题的讨论汇总
话题: swap话题: space话题: system话题: listening话题: what