扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
作者:zdnet安全频道 来源:论坛整理 2008年10月4日
关键字: MRTG
|
|
代码: |
shell> groupadd mysql shell> useradd -g mysql mysql shell> cd /usr/local shell> gunzip < /PATH/TO/MYSQL-VERSION-OS.tar.gz | tar xvf - shell> ln -s FULL-PATH-TO-MYSQL-VERSION-OS mysql shell> cd mysql shell> scripts/mysql_install_db --user=mysql shell> chown -R root . shell> chown -R mysql data shell> chgrp -R mysql . shell> bin/mysqld_safe --user=mysql & |
代码: |
cp ./support-files/mysql.server /etc/init.d/mysql ln -s ../init.d/mysql S85mysql ln -s ../init.d/mysql K85mysql |
代码: |
./configure --prefix=/www --enable-so make && make install |
代码: |
cp /www/bin/apachectl /etc/init.d/httpd cd /etc/rc3.d ln -s ../init.d/httpd S85httpd ln -s ../init.d/httpd K85httpd |
代码: |
/configure --prefix=/www/php --with-apxs2=/www/bin/apxs --with-config-file-path=/www/php --enable-sockets --with-mysql=/usr/local/mysql --with-zlib-dir=/usr/include --with-gd make && make install cp php.ini-dist /www/php/php.ini vi /www/conf/httpd.conf 加入: ###############for php and cacti################### AddType application/x-tar .tgz AddType application/x-httpd-php .php AddType image/x-icon .ico DirectoryIndex index.php index.html index.html.var #######################over######################## ../bin/apachectl restart |
代码: |
# mysql -u root -prootroot Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 10 to server version: 4.0.23-standard Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> create database cactidb; Query OK, 1 row affected (0.00 sec) mysql> grant all on cactidb.* to root; Query OK, 0 rows affected (0.01 sec) mysql> grant all on cactidb.* to root@localhost; Query OK, 0 rows affected (0.01 sec) mysql> grant all on cactidb.* to cactiuser; Query OK, 0 rows affected (0.00 sec) mysql> grant all on cactidb.* to cactiuser@localhost; Query OK, 0 rows affected (0.01 sec) mysql> set password for cactiuser@localhost=password('cactipw'); Query OK, 0 rows affected (0.00 sec) mysql> exit |
代码: |
cp cacti-0.8.6c.tar.gz /www/htdocs tar xzvf cacti-0.8.6c.tar.gz mv cacti-0.8.6c cacti cd cacti |
代码: |
/usr/local/mysql/bin/mysql –u root –prootroot cactidb < cacti.sql chown –R cactiuser rra/ log/ |
代码: |
vi /www/htdocs/cacti/include/config.php $database_type = “mysql”; $database_default = “cactidb”; $database_hostname = “localhost”; $database_username = “cactiuser”; $database_password = “cactipw”; |
代码: |
Crontab –u cactiuser –e 为cactiuser用户加入 */5 * * * * /www/php/bin/php /www/htdocs/cacti/poller.php > /dev/null 2>&1 |
|
|
|
|
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者