亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 1688 | 回復(fù): 0
打印 上一主題 下一主題

Cacti詳細(xì)安裝步驟 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2008-04-11 09:55 |只看該作者 |倒序?yàn)g覽
--mysql
tar zxvf mysql-5.0.37.tar.gz
cd mysql-5.0.37
more INSTALL-SOURCE
groupadd mysql
useradd -g mysql mysql
passwd mysql
./configure --prefix=/usr/local/mysql --with-charset=gbk --with-extra-charsets=gb2312,latin1,utf8 --enable-largefile --with-big-tables --localstatedir=/usr/local/mysql/data --without-debug --with-max-indexes=64 --without-ndbcluster
make
make install
cp support-files/my-medium.cnf /etc/my.cnf
cp /root/mysql-5.0.37/support-files/mysql.server /usr/local/mysql/mysql
chmod +x /usr/local/mysql/mysql
cd /usr/local/mysql
bin/mysql_install_db --user=mysql
chown -R root  .
chown -R mysql .
chgrp -R mysql .
chown mysql.mysql -R data
bin/mysqld_safe --user=mysql &
./bin/mysqladmin -u root password 508956
/usr/local/mysql/mysql restart
/usr/local/mysql/bin/mysql -uroot -p508956   登入mysql控制臺看看是不是正常了
--apache
emerge gd
emerge jpeg
emerge zlib
emerge libpng
emerge freetype
tar zxvf httpd-2.2.4.tar.gz
cd httpd-2.2.4
./configure --prefix=/usr/local/httpd --enable-so --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr -with-zlib-dir=/usr --with-freetype-dir=/usr
make
make install
/usr/local/httpd/bin/apachectl start 如果沒起來,看看日志:
more /usr/local/httpd/logs/error_log,
/usr/local/httpd/bin/apachectl start  試試,應(yīng)該就能訪問了:
http://192.168.0.212/

cd..
--PHP
emerge dev-libs/libxml
emerge dev-libs/libxml2
emerge curl
emerge mm
tar zxvf php-5.2.1.tar.gz
cd php-5.2.1
./configure --with-apxs2=/usr/local/httpd/bin/apxs --with-mysql=/usr/local/mysql --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr -with-zlib-dir=/usr --with-freetype-dir=/usr --enable-sockets

'./configure' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-mod_charset' '--enable-cli' '--enable-safe-mode' '--enable-sigchild' '--enable-magic-quotes' '--enable-rpath' '--enable-short-tags' '--enable-libgcc' '--enable-versioning' '--enable-ipv6' '--with-pcre-regex' '--with-zlib' '--with-bz2' '--enable-bcmath' '--enable-calendar' '--enable-ctype' '--enable-dba' '--with-curl' '--enable-dio' '--with-regex' '--enable-zend-multibyte' '--enable-zend-memory-manager' '--enable-memory-limit' '--enable-inline-optimization' '--enable-xml' '--enable-wddx' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--enable-sockets' '--with-mm' '--enable-shmop' '--enable-session' '--with-qtdom' '--enable-pcntl' '--with-ncurses' '--with-mysql' '--with-mcrypt' '--enable-mbstring' '--enable-mbregex' '--enable-java' '--with-iconv' '--with-gd' '--enable-ftp' '--with-dom' '--with-mod_charset' '--with-libmbfl'

'--with-readline' '--with-libedit'  '--with-mime-magic'
Extract the distribution tarball.
shell> tar xzvf cacti-version.tar.gz
Create the MySQL database:
shell> mysqladmin --user=root create cacti
Import the default cacti database:
shell> mysql cacti
shell> mysql --user=root mysql
mysql> GRANT ALL ON cacti.* TO
[email=cactiuser@localhost]cactiuser@localhost[/email]
IDENTIFIED BY 'somepassword';
mysql> flush privileges;
Edit include/config.php and specify the MySQL user, password and database for your Cacti configuration.
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "cacti";
Set the appropriate permissions on cacti's directories for graph/log generation. You should execute these commands from inside cacti's directory to change the permissions.
shell> chown -R cactiuser rra/ log/
(Enter a valid username for cactiuser, this user will also be used in the next step for data gathering.)
Add a line to your /etc/crontab file similar to:
*/5 * * * * cactiuser php /var/www/html/cacti/poller.php > /dev/null 2>&1
Replace cactiuser with the valid user specified in the previous step.
Replace /var/www/html/cacti/ with your full Cacti path.
Point your web browser to:
http://your-server/cacti/
Log in the with a username/password of admin. You will be required to change this password immediately. Make sure to fill in all of the path variables carefully and correctly on the following screen.

下載rrdtool,及cactid,放到cacti目錄下
打開默認(rèn)的/etc/snmp/snmp.conf文件,更改如下配置:
1、查找以下字段:
[Copy to clipboard] [ - ]CODE:
#       sec.name  source          community
com2sec notConfigUser  default       public
將"comunity"字段改為你要設(shè)置的密碼.比如"public".                                    
將“default”改為你想哪臺機(jī)器可以看到你的snmp信息,如10.10.10.10。
3、查找以下字段:
[Copy to clipboard] [ - ]CODE:
####
# Finally, grant the group read-only access to the systemview view.
#       group          context sec.model sec.level prefix read   write  notif
access  notConfigGroup ""      any       noauth    exact  mib2 none none
將"read"字段改為mib2.
[Copy to clipboard] [ - ]CODE:
#access  notConfigGroup ""      any       noauth    exact  systemview none none
3、查找以下字段:
[Copy to clipboard] [ - ]CODE:
## -or just the mib2 tree-
view mib2   included  .iso.org.dod.internet.mgmt.mib-2 fc  
將該行前面的"#"去掉.
保存關(guān)閉.
4、運(yùn)行/etc/init.d/snmpd start命令運(yùn)行snmpd.
最后運(yùn)行netstat -ln查看161端口是否打開了.
二、FreeBSD
如果使用port安裝net-snmp,默認(rèn)的配置文件應(yīng)該是在/usr/local/share/snmp/snmpd.conf(沒有默認(rèn)的文件)。
可以建立一個(gè)簡單的配置文件,如:
[Copy to clipboard] [ - ]CODE:
syslocation  YourDefineName
syscontact  YourEmailAddress
sysservices 77
rocommunity  public  (請更改)
load  12 12 12
然后運(yùn)行snmpd,netstat 看是否打開了161端口。
上述用法只針對默認(rèn)的安裝,如果你是自定義的安裝請依照你的安裝目錄來設(shè)置。




本文來自ChinaUnix博客,如果查看原文請點(diǎn):http://blog.chinaunix.net/u2/65776/showart_526568.html
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP