Apache2的安装

  1.执行:sudo apt-get install apache2。

  2.sudo vim /etc/apache2/apache2.conf在最后加上:ServerName localhost。

  3.sudo /etc/init.d/apache2 start启动apache服务。

  4.启动浏览器,并输入http://localhost即可看到安装成功界面。

  5.停止:sudo /etc/init.d/apache2 stop

  TcpDump的安装:

  1.http://www.tcpdump.org/下载tcpdump和libpcap压缩包并解压。

  2.安装c编译所需包:apt-get install build-essential

  3.安装libcap的前置包:apt-get install flex,apt-get install bison

  4.安装libcap:进入解压目录,

./configure
make
make install

  5.安装tcpdump:进入解压目录

./configure
make
make install

  6.测试是否安装成功,直接在命令行输入tcpdump

猜你喜欢

转载自www.cnblogs.com/BigJunOba/p/9703802.html