Welcome 微信登录

首页 / 操作系统 / Linux / Ubuntu 11.10搭建和配置Nagios

安装Ubuntu 11.10 Desktop 32bit 安装 apache2、php5、openssl、libssl-dev、gcc编译器与开发库、gd开发库、php、php-apache、php相关的插件 可以用apt-get命令来安装这些软件包,键入命令:sudo apt-get install apache2sudo apt-get install build-essentialsudo apt-get install libgd2-xpm-devsudo apt-get install opensslsudo apt-get install libssl-devsudo apt-get install php5sudo apt-get install libapache2-mod-php5 (这个可能在安装php5的时候就已经安装,如果安装就 不需要安装啦)sudo apt-get install libjpeg8sudo apt-get install libjpeg8-devsudo apt-get install curlsudo apt-get install libcurl3sudo apt-get install libpng12-0sudo apt-get install libpng12-devsudo apt-get install freetype2-demossudo apt-get install libfreetype6sudo apt-get install libxml2sudo apt-get install libxml2-dev配置apache 如果默认没有安装vim编辑器,先安装vim,因为默认的vi编辑器在ubuntu里相当的恶心sudo apt-get install vimsudo vim /etc/apache2/apache2.conf按shift-g,也就是G,到篇尾,添加如下配置AddType application/x-httpd-php .php .htm .htmlAddDefaultCharset UTF-8DirectoryIndexindex.php index.html index.html启动apache服务 sudo /etc/init.d/apache2 start使用chkconfig工具设为随机自启动,如果没有安装chkconfig则先安装chkconfigsudo apt-get install chkconfigsudo update-rc.d apache2 defaultssudochkconfig apache2 on测试php是否解析正常 在shell里切换到/var/www目录下cd /var/www清空里面的文件rm -rf *新建测试页面vimindex.php<?phpphpinfo();?>退出并保存打开浏览器测试:http://localhost是否正常显示php的信息
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 下一页
在Ubuntu下运行<APUE>书中代码 有关“apue.h”要做的事Dell PowerEdge 2950下Vmware Esxi 5.0安装图解相关资讯      Nagios  Ubuntu 11.10安装教程 
  • Linux下Nagios+PNP4Nagios的安装与  (今 08:25)
  • CentOS7安装Nagios并配置出图详解  (12/02/2015 19:36:58)
  • Nagios Core 4.1.0rc2 发布下载,  (07/18/2015 09:18:42)
  • Nagios 监控 SNMP 温度计  (08月21日)
  • CentOS 6.7 安装Nagios教程  (11/23/2015 10:36:49)
  • Nagios插件之登陆防火墙实现  (07/09/2015 19:58:25)
本文评论 查看全部评论 (0)
表情: 姓名: 字数