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? :
|