Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1219422
  • 博文数量: 135
  • 博客积分: 10576
  • 博客等级: 上将
  • 技术积分: 1670
  • 用 户 组: 普通用户
  • 注册时间: 2008-06-11 20:49
个人简介

不疯魔,不成活! --疯魔老杨(Crazy.LaoYang) http://www.inotes.cn/

文章分类

全部博文(135)

文章存档

2014年(4)

2012年(13)

2011年(5)

2010年(30)

2009年(56)

2008年(27)

分类: LINUX

2009-11-13 14:35:34

个人笔记:Cacti 0.8.7e插件成功安装之:superlinks
源自:杨志刚博客 (http://yangzhigang.cublog.cn)
 
插件介绍:
superlinks,是links的升级的版本,用于自己做一些页面的或做一个链接之类的,可以理解为是在cacti中给一个自己做做页面的“free”空间。
关于superlinks和links可参阅:
 
下载、解压缩superlinks
[root@centos53 plugins]# cd /usr/local/src
[root@centos53 src]# wget
[root@centos53 src]# unzip superlinks-0.8.zip -d /var/www/cacti/plugins/
 
激活superlinks
进入[Console]-[Configuration]-[plug Management],可以见到superlinks的Status为:Old Plugin Architecture。说明superlinks还没有运行。
[root@centos53 /]# vi /var/www/cacti/include/global.php
.....
$plugins = array();
$plugins[] = 'superlinks';
.....
之后,再进入[Console]-[Configuration]-[plug Management],可以见到superlinks的Status为:Old Plugin Architecture-Running。说明superlinks已经运行。
同时,在[Console]-[Management]下,多了"SuperLinks Pages"。
 
改变文件夹权限
进入[Console]-[Management]下"SuperLinks Pages"的页面后,可能会发现“You need to make sure that the tab_images/ directory is writable by the user that your webserver runs as. SuperLinks cannot create the tab graphics without this change.”
的告#,那就请进行以下操作:
[root@centos53 plugins]# chmod 777 -R superlinks/
 
 
使用
进入[Console]-[Management]下"SuperLinks Pages"的页面,进行"ADD"操作,可以发现一些可以加的内容(Content File),这里所列的就是“superlinks/content/”目录下的文件,如:
[root@centos53 plugins]# ll superlinks/content/
-rwxrwxrwx 1 root root   68 Sep  9  2007 basic-example.html
-rwxrwxrwx 1 root root 2051 Nov  1  2007 docs-includer.php
-rwxrwxrwx 1 root root  254 Sep  9  2007 iframe-example.html
-rwxrwxrwx 1 root root   44 Sep  7  2007 index.php
-rwxrwxrwx 1 root root  521 Oct 15  2008 loginafter-example.html
-rwxrwxrwx 1 root root  828 Oct 15  2008 loginbefore-example.html
-rwxrwxrwx 1 root root 3538 Oct 15  2008 login-logo.gif
-rwxrwxrwx 1 root root  200 Sep  9  2007 php-example.html
-rwxrwxrwx 1 root root  160 Jan 17  2008 README
-rwxrwxrwx 1 root root 1099 Jan 17  2008 whohas.php
-rwxrwxrwx 1 root root  739 Jan 17  2008 wmap-example.php
 
superlinks的功能要比links功能强一些,所以使用方面也较links复杂一点点。
1)可以在"superlinks/content/"目录下编辑自己的pages。
2)对于每一个文件,可以设置“style”、“Tab/Menu Name”、“Content File/URL”,可以将内容显示在Console的树中,还可以显示在TOP TAB中。
 
自己试一下吧!
 

另:
superlinks的功能包含了links的功能,所以建议使用superlinks。
阅读(5981) | 评论(2) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2009-11-24 22:37:10

OK了,用yum -y install php-gd,之后service httpd restart.

chinaunix网友2009-11-24 22:34:48

我还发现有这样的告#: Your mod_php should have the GD module enabled, with PNG support AND Freetype support. SuperLinks cannot create the tab graphics without this change.