由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - 问两个debian linux的问题
相关主题
为什么fedeora下的openssh不自动运行?家里的Linux based设备
请教500GB硬盘分区问题busybox ined problem
奇怪的swap,一部分不见了 (转载)dd-wrt的web interface不见了
包子求助:配置服务器怎样让没有显卡的机器运行Fedora 14?
跟风问一下tomatousb openvpn的问题吧。 (转载)讨论:linux终端下的表格数据处理?
Debian怎样列出所有正在登陆的TermialEmulator?Apache : 好像有一个命令能显示当前的config变量?
请高手解答grep和ls的两个问题Arch环境下Apache与PHP有冲突?
WinXP 和Debian 5 双系统后Partition Magic 8打不开了能ping 但 http 失败
相关话题的讨论汇总
话题: linux话题: debian话题: determine话题: would话题: swap
进入Linux版参与讨论
1 (共1页)
v*******a
发帖数: 14
1
1)How would you determine if apache is currently running on a debian linux
box?
2)How would you determine how many physical CPUs are installed on a debian
linux box?
谢谢!
c**s
发帖数: 771
2
1. ps aux|grep httpd
2. cat /proc/cpuinfo
v*******a
发帖数: 14
3
谢谢!
还有两个,能帮着看一下吗?
3)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?
4)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?

linux

【在 v*******a 的大作中提到】
: 1)How would you determine if apache is currently running on a debian linux
: box?
: 2)How would you determine how many physical CPUs are installed on a debian
: linux box?
: 谢谢!

v*****r
发帖数: 1119
4
3) use lsof or netstat, grep "test"
4) To add 1G swap on fly :
# dd if=/dev/zero of=/swapfile bs=1M count=1024
# mkswap /swapfile
# swapon /swapfile

a
out
the

【在 v*******a 的大作中提到】
: 谢谢!
: 还有两个,能帮着看一下吗?
: 3)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?
: 4)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?
:

1 (共1页)
进入Linux版参与讨论
相关主题
能ping 但 http 失败跟风问一下tomatousb openvpn的问题吧。 (转载)
Re: 问个简单的内网和外网的问题Debian怎样列出所有正在登陆的TermialEmulator?
ubuntu的ssh不行了请高手解答grep和ls的两个问题
请问如何跟踪下载地址WinXP 和Debian 5 双系统后Partition Magic 8打不开了
为什么fedeora下的openssh不自动运行?家里的Linux based设备
请教500GB硬盘分区问题busybox ined problem
奇怪的swap,一部分不见了 (转载)dd-wrt的web interface不见了
包子求助:配置服务器怎样让没有显卡的机器运行Fedora 14?
相关话题的讨论汇总
话题: linux话题: debian话题: determine话题: would话题: swap