linux安装cacti
Xshell 5 (Build 0977)Copyright (c) 2002-2016 NetSarang Computer, Inc. All rights reserved.
Type `help' to learn how to use Xshell prompt.
$
Connecting to 192.168.46.132:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
# yum install python
Loaded plugins: refresh-packagekit, security
ol6_UEK_latest | 1.2 kB 00:00
ol6_UEK_latest/primary |26 MB 01:54
ol6_UEK_latest 547/547
ol6_latest | 1.4 kB 00:00
ol6_latest/primary |58 MB 03:49
ol6_latest 35995/35995
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package python.x86_64 0:2.6.6-36.el6 will be updated
--> Processing Dependency: python = 2.6.6-36.el6 for package: python-libs-2.6.6-36.el6.x86_64
---> Package python.x86_64 0:2.6.6-64.0.1.el6 will be an update
--> Running transaction check
---> Package python-libs.x86_64 0:2.6.6-36.el6 will be updated
---> Package python-libs.x86_64 0:2.6.6-64.0.1.el6 will be an update
--> Processing Dependency: libcrypto.so.10(libcrypto.so.10)(64bit) for package: python-libs-2.6.6-64.0.1.el6.x86_64
--> Processing Dependency: libssl.so.10(libssl.so.10)(64bit) for package: python-libs-2.6.6-64.0.1.el6.x86_64
--> Running transaction check
---> Package openssl.x86_64 0:1.0.0-27.el6 will be updated
---> Package openssl.x86_64 0:1.0.1e-48.el6_8.1 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================================
Package Arch Version Repository Size
===================================================================================================
Updating:
python x86_64 2.6.6-64.0.1.el6 ol6_latest 75 k
Updating for dependencies:
openssl x86_64 1.0.1e-48.el6_8.1 ol6_latest 1.5 M
python-libs x86_64 2.6.6-64.0.1.el6 ol6_latest 5.3 M
Transaction Summary
===================================================================================================
Upgrade 3 Package(s)
Total download size: 6.9 M
Is this ok : y
Downloading Packages:
(1/3): openssl-1.0.1e-48.el6_8.1.x86_64.rpm | 1.5 MB 00:07
(2/3): python-2.6.6-64.0.1.el6.x86_64.rpm |75 kB 00:00
(3/3): python-libs-2.6.6-64.0.1.el6.x86_64.rpm | 5.3 MB 00:17
---------------------------------------------------------------------------------------------------
Total 275 kB/s | 6.9 MB 00:25
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Retrieving key from http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
Importing GPG key 0xEC551F03:
Userid: "Oracle OSS group (Open Source Software group) <build@oss.oracle.com>"
From: http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
Is this ok : y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : openssl-1.0.1e-48.el6_8.1.x86_64 1/6
Updating : python-2.6.6-64.0.1.el6.x86_64 2/6
Updating : python-libs-2.6.6-64.0.1.el6.x86_64 3/6
Cleanup : python-2.6.6-36.el6.x86_64 4/6
Cleanup : python-libs-2.6.6-36.el6.x86_64 5/6
Cleanup : openssl-1.0.0-27.el6.x86_64 6/6
Verifying: python-libs-2.6.6-64.0.1.el6.x86_64 1/6
Verifying: python-2.6.6-64.0.1.el6.x86_64 2/6
Verifying: openssl-1.0.1e-48.el6_8.1.x86_64 3/6
Verifying: python-2.6.6-36.el6.x86_64 4/6
Verifying: python-libs-2.6.6-36.el6.x86_64 5/6
Verifying: openssl-1.0.0-27.el6.x86_64 6/6
Updated:
python.x86_64 0:2.6.6-64.0.1.el6
Dependency Updated:
openssl.x86_64 0:1.0.1e-48.el6_8.1 python-libs.x86_64 0:2.6.6-64.0.1.el6
Complete!
# uname -a
Linux localhost.localdomain 2.6.39-400.17.1.el6uek.x86_64 #1 SMP Fri Feb 22 18:16:18 PST 2013 x86_64 x86_64 x86_64 GNU/Linux
# rpm -ivh http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
Retrieving http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
warning: /var/tmp/rpm-tmp.1ENK0R: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
Preparing... ###########################################
1:rpmforge-release ###########################################
# yum install rrdtool -y
Loaded plugins: refresh-packagekit, security
Existing lock /var/run/yum.pid: another copy is running as pid 3161.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 148 M RSS (456 MB VSZ)
Started: Mon May 23 02:48:58 2016 - 00:33 ago
State: Sleeping, pid: 3161
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 148 M RSS (456 MB VSZ)
Started: Mon May 23 02:48:58 2016 - 00:35 ago
State: Sleeping, pid: 3161
^Z
+Stopped yum install rrdtool -y
# yum install rrdtool -y
Loaded plugins: refresh-packagekit, security
Existing lock /var/run/yum.pid: another copy is running as pid 3161.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 148 M RSS (456 MB VSZ)
Started: Mon May 23 02:48:58 2016 - 00:59 ago
State: Sleeping, pid: 3161
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 148 M RSS (456 MB VSZ)
Started: Mon May 23 02:48:58 2016 - 01:01 ago
State: Sleeping, pid: 3161
^Z
+Stopped yum install rrdtool -y
# reboot
#
Broadcast message from root@localhost.localdomain
(/dev/pts/1) at 2:51 ...
The system is going down for reboot NOW!
Connection closed by foreign host.
Disconnected from remote host(oracle) at 18:51:32.
Type `help' to learn how to use Xshell prompt.
$
Connecting to 192.168.46.132:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
Last login: Mon May 23 02:41:02 2016 from 192.168.46.1
# yum install rrdtool -y
Loaded plugins: refresh-packagekit, security
rpmforge/primary_db | 2.7 MB 03:41
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package rrdtool.x86_64 0:1.3.8-7.el6 will be installed
--> Processing Dependency: dejavu-lgc-sans-mono-fonts for package: rrdtool-1.3.8-7.el6.x86_64
--> Running transaction check
---> Package dejavu-lgc-sans-mono-fonts.noarch 0:2.33-1.el6 will be installed
--> Processing Dependency: dejavu-fonts-common = 2.33-1.el6 for package: dejavu-lgc-sans-mono-fonts-2.33-1.el6.noarch
--> Running transaction check
---> Package dejavu-fonts-common.noarch 0:2.30-2.el6 will be updated
--> Processing Dependency: dejavu-fonts-common = 2.30-2.el6 for package: dejavu-sans-mono-fonts-2.30-2.el6.noarch
--> Processing Dependency: dejavu-fonts-common = 2.30-2.el6 for package: dejavu-sans-fonts-2.30-2.el6.noarch
--> Processing Dependency: dejavu-fonts-common = 2.30-2.el6 for package: dejavu-serif-fonts-2.30-2.el6.noarch
---> Package dejavu-fonts-common.noarch 0:2.33-1.el6 will be an update
--> Running transaction check
---> Package dejavu-sans-fonts.noarch 0:2.30-2.el6 will be updated
---> Package dejavu-sans-fonts.noarch 0:2.33-1.el6 will be an update
---> Package dejavu-sans-mono-fonts.noarch 0:2.30-2.el6 will be updated
---> Package dejavu-sans-mono-fonts.noarch 0:2.33-1.el6 will be an update
---> Package dejavu-serif-fonts.noarch 0:2.30-2.el6 will be updated
---> Package dejavu-serif-fonts.noarch 0:2.33-1.el6 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================================
Package Arch Version Repository Size
===================================================================================================
Installing:
rrdtool x86_64 1.3.8-7.el6 ol6_latest 293 k
Installing for dependencies:
dejavu-lgc-sans-mono-fonts noarch 2.33-1.el6 ol6_latest 397 k
Updating for dependencies:
dejavu-fonts-common noarch 2.33-1.el6 ol6_latest 63 k
dejavu-sans-fonts noarch 2.33-1.el6 ol6_latest 2.2 M
dejavu-sans-mono-fonts noarch 2.33-1.el6 ol6_latest 473 k
dejavu-serif-fonts noarch 2.33-1.el6 ol6_latest 951 k
Transaction Summary
===================================================================================================
Install 2 Package(s)
Upgrade 4 Package(s)
Total download size: 4.3 M
Downloading Packages:
(1/6): dejavu-fonts-common-2.33-1.el6.noarch.rpm |63 kB 00:00
(2/6): dejavu-lgc-sans-mono-fonts-2.33-1.el6.noarch.rpm | 397 kB 00:01
(3/6): dejavu-sans-fonts-2.33-1.el6.noarch.rpm | 2.2 MB 00:06
(4/6): dejavu-sans-mono-fonts-2.33-1.el6.noarch.rpm | 473 kB 00:01
(5/6): dejavu-serif-fonts-2.33-1.el6.noarch.rpm | 951 kB 00:02
(6/6): rrdtool-1.3.8-7.el6.x86_64.rpm | 293 kB 00:00
---------------------------------------------------------------------------------------------------
Total 299 kB/s | 4.3 MB 00:14
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Updating : dejavu-fonts-common-2.33-1.el6.noarch 1/10
Installing : dejavu-lgc-sans-mono-fonts-2.33-1.el6.noarch 2/10
Updating : dejavu-sans-mono-fonts-2.33-1.el6.noarch 3/10
Installing : rrdtool-1.3.8-7.el6.x86_64 4/10
Updating : dejavu-sans-fonts-2.33-1.el6.noarch 5/10
Updating : dejavu-serif-fonts-2.33-1.el6.noarch 6/10
Cleanup : dejavu-serif-fonts-2.30-2.el6.noarch 7/10
Cleanup : dejavu-sans-fonts-2.30-2.el6.noarch 8/10
Cleanup : dejavu-sans-mono-fonts-2.30-2.el6.noarch 9/10
Cleanup : dejavu-fonts-common-2.30-2.el6.noarch 10/10
Verifying: dejavu-lgc-sans-mono-fonts-2.33-1.el6.noarch 1/10
Verifying: rrdtool-1.3.8-7.el6.x86_64 2/10
Verifying: dejavu-fonts-common-2.33-1.el6.noarch 3/10
Verifying: dejavu-sans-mono-fonts-2.33-1.el6.noarch 4/10
Verifying: dejavu-sans-fonts-2.33-1.el6.noarch 5/10
Verifying: dejavu-serif-fonts-2.33-1.el6.noarch 6/10
Verifying: dejavu-serif-fonts-2.30-2.el6.noarch 7/10
Verifying: dejavu-sans-fonts-2.30-2.el6.noarch 8/10
Verifying: dejavu-sans-mono-fonts-2.30-2.el6.noarch 9/10
Verifying: dejavu-fonts-common-2.30-2.el6.noarch 10/10
Installed:
rrdtool.x86_64 0:1.3.8-7.el6
Dependency Installed:
dejavu-lgc-sans-mono-fonts.noarch 0:2.33-1.el6
Dependency Updated:
dejavu-fonts-common.noarch 0:2.33-1.el6 dejavu-sans-fonts.noarch 0:2.33-1.el6
dejavu-sans-mono-fonts.noarch 0:2.33-1.el6 dejavu-serif-fonts.noarch 0:2.33-1.el6
Complete!
# yum install net-snmp net-snmp-libs net-snmp-utils
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package net-snmp.x86_64 1:5.5-44.0.1.el6 will be updated
---> Package net-snmp.x86_64 1:5.5-57.0.1.el6 will be an update
---> Package net-snmp-libs.x86_64 1:5.5-44.0.1.el6 will be updated
--> Processing Dependency: net-snmp-libs = 1:5.5-44.0.1.el6 for package: 1:net-snmp-perl-5.5-44.0.1.el6.x86_64
--> Processing Dependency: net-snmp-libs = 1:5.5-44.0.1.el6 for package: 1:net-snmp-python-5.5-44.0.1.el6.x86_64
---> Package net-snmp-libs.x86_64 1:5.5-57.0.1.el6 will be an update
---> Package net-snmp-utils.x86_64 1:5.5-44.0.1.el6 will be updated
---> Package net-snmp-utils.x86_64 1:5.5-57.0.1.el6 will be an update
--> Running transaction check
---> Package net-snmp-perl.x86_64 1:5.5-44.0.1.el6 will be updated
---> Package net-snmp-perl.x86_64 1:5.5-57.0.1.el6 will be an update
---> Package net-snmp-python.x86_64 1:5.5-44.0.1.el6 will be updated
---> Package net-snmp-python.x86_64 1:5.5-57.0.1.el6 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================================
Package Arch Version Repository Size
===================================================================================================
Updating:
net-snmp x86_64 1:5.5-57.0.1.el6 ol6_latest 308 k
net-snmp-libs x86_64 1:5.5-57.0.1.el6 ol6_latest 1.5 M
net-snmp-utils x86_64 1:5.5-57.0.1.el6 ol6_latest 176 k
Updating for dependencies:
net-snmp-perl x86_64 1:5.5-57.0.1.el6 ol6_latest 324 k
net-snmp-python x86_64 1:5.5-57.0.1.el6 ol6_latest 76 k
Transaction Summary
===================================================================================================
Upgrade 5 Package(s)
Total download size: 2.4 M
Is this ok : y
Downloading Packages:
(1/5): net-snmp-5.5-57.0.1.el6.x86_64.rpm | 308 kB 00:00
(2/5): net-snmp-libs-5.5-57.0.1.el6.x86_64.rpm | 1.5 MB 00:04
(3/5): net-snmp-perl-5.5-57.0.1.el6.x86_64.rpm | 324 kB 00:00
(4/5): net-snmp-python-5.5-57.0.1.el6.x86_64.rpm |76 kB 00:00
(5/5): net-snmp-utils-5.5-57.0.1.el6.x86_64.rpm | 176 kB 00:00
---------------------------------------------------------------------------------------------------
Total 300 kB/s | 2.4 MB 00:08
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : 1:net-snmp-libs-5.5-57.0.1.el6.x86_64 1/10
Updating : 1:net-snmp-5.5-57.0.1.el6.x86_64 2/10
Updating : 1:net-snmp-utils-5.5-57.0.1.el6.x86_64 3/10
Updating : 1:net-snmp-perl-5.5-57.0.1.el6.x86_64 4/10
Updating : 1:net-snmp-python-5.5-57.0.1.el6.x86_64 5/10
Cleanup : 1:net-snmp-python-5.5-44.0.1.el6.x86_64 6/10
Cleanup : 1:net-snmp-perl-5.5-44.0.1.el6.x86_64 7/10
Cleanup : 1:net-snmp-utils-5.5-44.0.1.el6.x86_64 8/10
Cleanup : 1:net-snmp-5.5-44.0.1.el6.x86_64 9/10
Cleanup : 1:net-snmp-libs-5.5-44.0.1.el6.x86_64 10/10
Verifying: 1:net-snmp-5.5-57.0.1.el6.x86_64 1/10
Verifying: 1:net-snmp-utils-5.5-57.0.1.el6.x86_64 2/10
Verifying: 1:net-snmp-perl-5.5-57.0.1.el6.x86_64 3/10
Verifying: 1:net-snmp-libs-5.5-57.0.1.el6.x86_64 4/10
Verifying: 1:net-snmp-python-5.5-57.0.1.el6.x86_64 5/10
Verifying: 1:net-snmp-perl-5.5-44.0.1.el6.x86_64 6/10
Verifying: 1:net-snmp-libs-5.5-44.0.1.el6.x86_64 7/10
Verifying: 1:net-snmp-5.5-44.0.1.el6.x86_64 8/10
Verifying: 1:net-snmp-python-5.5-44.0.1.el6.x86_64 9/10
Verifying: 1:net-snmp-utils-5.5-44.0.1.el6.x86_64 10/10
Updated:
net-snmp.x86_64 1:5.5-57.0.1.el6 net-snmp-libs.x86_64 1:5.5-57.0.1.el6
net-snmp-utils.x86_64 1:5.5-57.0.1.el6
Dependency Updated:
net-snmp-perl.x86_64 1:5.5-57.0.1.el6 net-snmp-python.x86_64 1:5.5-57.0.1.el6
Complete!
# vi /etc/snmp/snmpd.conf
# /etc/init.d/snmpd restart
停止 snmpd: [确定]
正在启动 snmpd: [确定]
# snmpwalk -c public -v1 127.0.0.1 .1.3.6.1.2.1.25.2.3.1
HOST-RESOURCES-MIB::hrStorageIndex.1 = INTEGER: 1
HOST-RESOURCES-MIB::hrStorageIndex.3 = INTEGER: 3
HOST-RESOURCES-MIB::hrStorageIndex.6 = INTEGER: 6
HOST-RESOURCES-MIB::hrStorageIndex.7 = INTEGER: 7
HOST-RESOURCES-MIB::hrStorageIndex.10 = INTEGER: 10
HOST-RESOURCES-MIB::hrStorageIndex.31 = INTEGER: 31
HOST-RESOURCES-MIB::hrStorageIndex.35 = INTEGER: 35
HOST-RESOURCES-MIB::hrStorageIndex.36 = INTEGER: 36
HOST-RESOURCES-MIB::hrStorageType.1 = OID: HOST-RESOURCES-TYPES::hrStorageRam
HOST-RESOURCES-MIB::hrStorageType.3 = OID: HOST-RESOURCES-TYPES::hrStorageVirtualMemory
HOST-RESOURCES-MIB::hrStorageType.6 = OID: HOST-RESOURCES-TYPES::hrStorageOther
HOST-RESOURCES-MIB::hrStorageType.7 = OID: HOST-RESOURCES-TYPES::hrStorageOther
HOST-RESOURCES-MIB::hrStorageType.10 = OID: HOST-RESOURCES-TYPES::hrStorageVirtualMemory
HOST-RESOURCES-MIB::hrStorageType.31 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.35 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.36 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Virtual memory
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Memory buffers
HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: Cached memory
HOST-RESOURCES-MIB::hrStorageDescr.10 = STRING: Swap space
HOST-RESOURCES-MIB::hrStorageDescr.31 = STRING: /
HOST-RESOURCES-MIB::hrStorageDescr.35 = STRING: /dev/shm
HOST-RESOURCES-MIB::hrStorageDescr.36 = STRING: /boot
HOST-RESOURCES-MIB::hrStorageAllocationUnits.1 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.3 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.6 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.7 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.10 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.31 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.35 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.36 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 2041764
HOST-RESOURCES-MIB::hrStorageSize.3 = INTEGER: 6137760
HOST-RESOURCES-MIB::hrStorageSize.6 = INTEGER: 2041764
HOST-RESOURCES-MIB::hrStorageSize.7 = INTEGER: 447768
HOST-RESOURCES-MIB::hrStorageSize.10 = INTEGER: 4095996
HOST-RESOURCES-MIB::hrStorageSize.31 = INTEGER: 6166239
HOST-RESOURCES-MIB::hrStorageSize.35 = INTEGER: 255220
HOST-RESOURCES-MIB::hrStorageSize.36 = INTEGER: 198337
HOST-RESOURCES-MIB::hrStorageUsed.1 = INTEGER: 824352
HOST-RESOURCES-MIB::hrStorageUsed.3 = INTEGER: 824352
HOST-RESOURCES-MIB::hrStorageUsed.6 = INTEGER: 102856
HOST-RESOURCES-MIB::hrStorageUsed.7 = INTEGER: 447768
HOST-RESOURCES-MIB::hrStorageUsed.10 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageUsed.31 = INTEGER: 1073741
HOST-RESOURCES-MIB::hrStorageUsed.35 = INTEGER: 19
HOST-RESOURCES-MIB::hrStorageUsed.36 = INTEGER: 51382
#
# yum install httpd php php-mysql php-snmp php-xml php-gd mysql mysql-server
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package httpd.x86_64 0:2.2.15-26.0.1.el6 will be updated
---> Package httpd.x86_64 0:2.2.15-53.0.1.el6 will be an update
--> Processing Dependency: httpd-tools = 2.2.15-53.0.1.el6 for package: httpd-2.2.15-53.0.1.el6.x86_64
---> Package mysql.x86_64 0:5.1.66-2.el6_3 will be updated
--> Processing Dependency: mysql = 5.1.66-2.el6_3 for package: mysql-bench-5.1.66-2.el6_3.x86_64
--> Processing Dependency: mysql = 5.1.66-2.el6_3 for package: mysql-test-5.1.66-2.el6_3.x86_64
---> Package mysql.x86_64 0:5.1.73-7.el6 will be an update
--> Processing Dependency: mysql-libs = 5.1.73-7.el6 for package: mysql-5.1.73-7.el6.x86_64
---> Package mysql-server.x86_64 0:5.1.66-2.el6_3 will be updated
---> Package mysql-server.x86_64 0:5.1.73-7.el6 will be an update
---> Package php.x86_64 0:5.3.3-22.el6 will be updated
---> Package php.x86_64 0:5.3.3-47.el6 will be an update
--> Processing Dependency: php-common(x86-64) = 5.3.3-47.el6 for package: php-5.3.3-47.el6.x86_64
--> Processing Dependency: php-cli(x86-64) = 5.3.3-47.el6 for package: php-5.3.3-47.el6.x86_64
---> Package php-gd.x86_64 0:5.3.3-22.el6 will be updated
---> Package php-gd.x86_64 0:5.3.3-47.el6 will be an update
---> Package php-mysql.x86_64 0:5.3.3-47.el6 will be installed
---> Package php-snmp.x86_64 0:5.3.3-47.el6 will be installed
---> Package php-xml.x86_64 0:5.3.3-22.el6 will be updated
---> Package php-xml.x86_64 0:5.3.3-47.el6 will be an update
--> Running transaction check
---> Package httpd-tools.x86_64 0:2.2.15-26.0.1.el6 will be updated
---> Package httpd-tools.x86_64 0:2.2.15-53.0.1.el6 will be an update
---> Package mysql-bench.x86_64 0:5.1.66-2.el6_3 will be updated
---> Package mysql-bench.x86_64 0:5.1.73-7.el6 will be an update
---> Package mysql-libs.x86_64 0:5.1.66-2.el6_3 will be updated
---> Package mysql-libs.x86_64 0:5.1.73-7.el6 will be an update
---> Package mysql-test.x86_64 0:5.1.66-2.el6_3 will be updated
---> Package mysql-test.x86_64 0:5.1.73-7.el6 will be an update
---> Package php-cli.x86_64 0:5.3.3-22.el6 will be updated
---> Package php-cli.x86_64 0:5.3.3-47.el6 will be an update
---> Package php-common.x86_64 0:5.3.3-22.el6 will be updated
--> Processing Dependency: php-common(x86-64) = 5.3.3-22.el6 for package: php-pdo-5.3.3-22.el6.x86_64
---> Package php-common.x86_64 0:5.3.3-47.el6 will be an update
--> Running transaction check
---> Package php-pdo.x86_64 0:5.3.3-22.el6 will be updated
---> Package php-pdo.x86_64 0:5.3.3-47.el6 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================================
Package Arch Version Repository Size
===================================================================================================
Installing:
php-mysql x86_64 5.3.3-47.el6 ol6_latest 86 k
php-snmp x86_64 5.3.3-47.el6 ol6_latest 35 k
Updating:
httpd x86_64 2.2.15-53.0.1.el6 ol6_latest 832 k
mysql x86_64 5.1.73-7.el6 ol6_latest 894 k
mysql-server x86_64 5.1.73-7.el6 ol6_latest 8.6 M
php x86_64 5.3.3-47.el6 ol6_latest 1.1 M
php-gd x86_64 5.3.3-47.el6 ol6_latest 111 k
php-xml x86_64 5.3.3-47.el6 ol6_latest 107 k
Updating for dependencies:
httpd-tools x86_64 2.2.15-53.0.1.el6 ol6_latest 78 k
mysql-bench x86_64 5.1.73-7.el6 ol6_latest 428 k
mysql-libs x86_64 5.1.73-7.el6 ol6_latest 1.2 M
mysql-test x86_64 5.1.73-7.el6 ol6_latest 5.3 M
php-cli x86_64 5.3.3-47.el6 ol6_latest 2.2 M
php-common x86_64 5.3.3-47.el6 ol6_latest 529 k
php-pdo x86_64 5.3.3-47.el6 ol6_latest 79 k
Transaction Summary
===================================================================================================
Install 2 Package(s)
Upgrade 13 Package(s)
Total download size: 22 M
Is this ok : y
Downloading Packages:
(1/15): httpd-2.2.15-53.0.1.el6.x86_64.rpm | 832 kB 00:02
(2/15): httpd-tools-2.2.15-53.0.1.el6.x86_64.rpm |78 kB 00:00
(3/15): mysql-5.1.73-7.el6.x86_64.rpm | 894 kB 00:02
(4/15): mysql-bench-5.1.73-7.el6.x86_64.rpm | 428 kB 00:01
(5/15): mysql-libs-5.1.73-7.el6.x86_64.rpm | 1.2 MB 00:03
(6/15): mysql-server-5.1.73-7.el6.x86_64.rpm | 8.6 MB 00:26
(7/15): mysql-test-5.1.73-7.el6.x86_64.rpm | 5.3 MB 00:15
(8/15): php-5.3.3-47.el6.x86_64.rpm | 1.1 MB 00:03
(9/15): php-cli-5.3.3-47.el6.x86_64.rpm | 2.2 MB 00:06
(10/15): php-common-5.3.3-47.el6.x86_64.rpm | 529 kB 00:01
(11/15): php-gd-5.3.3-47.el6.x86_64.rpm | 111 kB 00:00
(12/15): php-mysql-5.3.3-47.el6.x86_64.rpm |86 kB 00:00
(13/15): php-pdo-5.3.3-47.el6.x86_64.rpm |79 kB 00:00
(14/15): php-snmp-5.3.3-47.el6.x86_64.rpm |35 kB 00:00
(15/15): php-xml-5.3.3-47.el6.x86_64.rpm | 107 kB 00:00
---------------------------------------------------------------------------------------------------
Total 315 kB/s |22 MB 01:10
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : php-common-5.3.3-47.el6.x86_64 1/28
Updating : mysql-libs-5.1.73-7.el6.x86_64 2/28
Updating : mysql-5.1.73-7.el6.x86_64 3/28
Updating : mysql-server-5.1.73-7.el6.x86_64 4/28
Updating : php-cli-5.3.3-47.el6.x86_64 5/28
Updating : php-pdo-5.3.3-47.el6.x86_64 6/28
Updating : httpd-tools-2.2.15-53.0.1.el6.x86_64 7/28
Updating : httpd-2.2.15-53.0.1.el6.x86_64 8/28
Updating : php-5.3.3-47.el6.x86_64 9/28
Installing : php-mysql-5.3.3-47.el6.x86_64 10/28
Updating : mysql-test-5.1.73-7.el6.x86_64 11/28
Updating : mysql-bench-5.1.73-7.el6.x86_64 12/28
Updating : php-gd-5.3.3-47.el6.x86_64 13/28
Installing : php-snmp-5.3.3-47.el6.x86_64 14/28
Updating : php-xml-5.3.3-47.el6.x86_64 15/28
Cleanup : php-5.3.3-22.el6.x86_64 16/28
Cleanup : mysql-test-5.1.66-2.el6_3.x86_64 17/28
Cleanup : mysql-bench-5.1.66-2.el6_3.x86_64 18/28
Cleanup : mysql-server-5.1.66-2.el6_3.x86_64 19/28
Cleanup : mysql-5.1.66-2.el6_3.x86_64 20/28
Cleanup : httpd-2.2.15-26.0.1.el6.x86_64 21/28
Cleanup : php-cli-5.3.3-22.el6.x86_64 22/28
Cleanup : php-pdo-5.3.3-22.el6.x86_64 23/28
Cleanup : php-xml-5.3.3-22.el6.x86_64 24/28
Cleanup : php-gd-5.3.3-22.el6.x86_64 25/28
Cleanup : php-common-5.3.3-22.el6.x86_64 26/28
Cleanup : httpd-tools-2.2.15-26.0.1.el6.x86_64 27/28
Cleanup : mysql-libs-5.1.66-2.el6_3.x86_64 28/28
Verifying: mysql-5.1.73-7.el6.x86_64 1/28
Verifying: php-gd-5.3.3-47.el6.x86_64 2/28
Verifying: php-snmp-5.3.3-47.el6.x86_64 3/28
Verifying: php-mysql-5.3.3-47.el6.x86_64 4/28
Verifying: httpd-tools-2.2.15-53.0.1.el6.x86_64 5/28
Verifying: php-xml-5.3.3-47.el6.x86_64 6/28
Verifying: mysql-libs-5.1.73-7.el6.x86_64 7/28
Verifying: php-common-5.3.3-47.el6.x86_64 8/28
Verifying: mysql-test-5.1.73-7.el6.x86_64 9/28
Verifying: php-5.3.3-47.el6.x86_64 10/28
Verifying: mysql-bench-5.1.73-7.el6.x86_64 11/28
Verifying: php-cli-5.3.3-47.el6.x86_64 12/28
Verifying: php-pdo-5.3.3-47.el6.x86_64 13/28
Verifying: mysql-server-5.1.73-7.el6.x86_64 14/28
Verifying: httpd-2.2.15-53.0.1.el6.x86_64 15/28
Verifying: mysql-5.1.66-2.el6_3.x86_64 16/28
Verifying: mysql-bench-5.1.66-2.el6_3.x86_64 17/28
Verifying: mysql-server-5.1.66-2.el6_3.x86_64 18/28
Verifying: httpd-tools-2.2.15-26.0.1.el6.x86_64 19/28
Verifying: php-xml-5.3.3-22.el6.x86_64 20/28
Verifying: php-gd-5.3.3-22.el6.x86_64 21/28
Verifying: php-cli-5.3.3-22.el6.x86_64 22/28
Verifying: php-common-5.3.3-22.el6.x86_64 23/28
Verifying: mysql-libs-5.1.66-2.el6_3.x86_64 24/28
Verifying: mysql-test-5.1.66-2.el6_3.x86_64 25/28
Verifying: php-5.3.3-22.el6.x86_64 26/28
Verifying: httpd-2.2.15-26.0.1.el6.x86_64 27/28
Verifying: php-pdo-5.3.3-22.el6.x86_64 28/28
Installed:
php-mysql.x86_64 0:5.3.3-47.el6 php-snmp.x86_64 0:5.3.3-47.el6
Updated:
httpd.x86_64 0:2.2.15-53.0.1.el6 mysql.x86_64 0:5.1.73-7.el6mysql-server.x86_64 0:5.1.73-7.el6
php.x86_64 0:5.3.3-47.el6 php-gd.x86_64 0:5.3.3-47.el6 php-xml.x86_64 0:5.3.3-47.el6
Dependency Updated:
httpd-tools.x86_64 0:2.2.15-53.0.1.el6 mysql-bench.x86_64 0:5.1.73-7.el6
mysql-libs.x86_64 0:5.1.73-7.el6 mysql-test.x86_64 0:5.1.73-7.el6
php-cli.x86_64 0:5.3.3-47.el6 php-common.x86_64 0:5.3.3-47.el6
php-pdo.x86_64 0:5.3.3-47.el6
Complete!
# service httpd start
正在启动 httpd:httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName
[确定]
# service mysqld start
正在启动 mysqld: [确定]
# wget http://www.cacti.net/downloads/cacti-0.8.8b.tar.gz
--2016-05-23 03:04:44--http://www.cacti.net/downloads/cacti-0.8.8b.tar.gz
正在解析主机 www.cacti.net... 209.242.232.5, 173.225.179.10
正在连接 www.cacti.net|209.242.232.5|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:2272130 (2.2M)
正在保存至: “cacti-0.8.8b.tar.gz”
0% [ ] 18,621 5.70K/s eta(英国中部时 1% [ ] 27,333 6.94K/s eta(英国中部时 1% [ ] 27,333 5.56K/s eta(英国中部时 1% [ ] 27,333 4.64K/s eta(英国中部时 1% [ ] 27,333 3.98K/s eta(英国中部时 1% [ ] 27,333 3.49K/s eta(英国中部时 1% [> ] 42,989 5.07K/s eta(英国中部时 2% [> ] 46,461 5.20K/s eta(英国中部时 2% [> ] 49,933 5.45K/s eta(英国中部时 2% [> ] 53,405 5.68K/s eta(英国中部时 2% [> ] 60,349 6.25K/s eta(英国中部时 2% [> ] 67,293 6.80K/s eta(英国中部时 3% [> ] 74,237 7.33K/s eta(英国中部时 3% [=> ] 81,181 7.83K/s eta(英国中部时 3% [=> ] 88,125 8.30K/s eta(英国中部时 4% [=> ] 95,069 8.76K/s eta(英国中部时 4% [=> ] 105,485 9.50K/s eta(英国中部时 5% [=> ] 115,901 10.2K/s eta(英国中部时 5% [==> ] 126,317 10.9K/s eta(英国中部时 6% [==> ] 140,205 11.9K/s eta(英国中部时 6% [==> ] 147,149 12.0K/s eta(英国中部时 6% [===> ] 157,565 12.3K/s eta(英国中部时 7% [===> ] 167,981 13.3K/s eta(英国中部时 7% [===> ] 178,397 15.2K/s eta(英国中部时 8% [===> ] 192,285 18.1K/s eta(英国中部时 8% [====> ] 202,701 31.6K/s eta(英国中部时 9% [====> ] 216,589 34.5K/s eta(英国中部时10% [====> ] 230,477 38.1K/s eta(英国中部时10% [=====> ] 244,365 40.2K/s eta(英国中部时11% [=====> ] 254,781 41.7K/s eta(英国中部时11% [=====> ] 268,669 43.1K/s eta(英国中部时12% [======> ] 285,053 45.1K/s eta(英国中部时13% [======> ] 302,413 47.2K/s eta(英国中部时14% [=======> ] 319,773 49.4K/s eta(英国中部时14% [=======> ] 340,605 52.3K/s eta(英国中部时15% [========> ] 357,965 54.5K/s eta(英国中部时16% [========> ] 378,797 56.6K/s eta(英国中部时17% [=========> ] 393,661 57.5K/s eta(英国中部时18% [=========> ] 410,045 58.8K/s eta(英国中部时18% [=========> ] 427,405 59.5K/s eta(英国中部时19% [==========> ] 448,237 62.3K/s eta(英国中部时20% [==========> ] 469,069 64.5K/s eta(英国中部时21% [===========> ] 496,845 68.1K/s eta(英国中部时23% [============> ] 531,565 73.9K/s eta(英国中部时24% [=============> ] 563,533 77.6K/s eta(英国中部时26% [==============> ] 612,141 85.4K/s eta(英国中部时28% [===============> ] 658,669 91.6K/s eta(英国中部时31% [=================> ] 712,141 99.8K/s eta(英国中部时34% [==================> ] 778,109 111K/s eta(英国中部时36% [====================> ] 839,221 121K/s eta(英国中部时39% [======================> ] 903,805 132K/s eta(英国中部时42% [=======================> ] 969,773 142K/s eta(英国中部时45% [=========================> ] 1,031,581 151K/s eta(英国中部时48% [===========================> ] 1,097,549 161K/s eta(英国中部时51% [============================> ] 1,159,357 170K/s eta(英国中部时52% [=============================> ] 1,201,021 175K/s eta(英国中部时55% [===============================> ] 1,256,573 182K/s eta(英国中部时58% [================================> ] 1,318,381 192K/s eta(英国中部时60% [==================================> ] 1,382,965 202K/s eta(英国中部时62% [===================================> ] 1,424,629 207K/s eta(英国中部时65% [====================================> ] 1,478,797 214K/s eta(英国中部时67% [======================================> ] 1,544,765 223K/s eta(英国中部时70% [========================================> ] 1,606,573 230K/s eta(英国中部时73% [=========================================> ] 1,672,541 237K/s eta(英国中部时76% [===========================================> ] 1,733,653 243K/s eta(英国中部时79% [============================================> ] 1,796,149 246K/s eta(英国中部时81% [=============================================> ] 1,840,597 245K/s eta(英国中部时83% [===============================================> ] 1,896,149 246K/s eta(英国中部时86% [================================================> ] 1,957,957 244K/s eta(英国中部时89% [==================================================> ] 2,023,925 246K/s eta(英国中部时91% [====================================================> ] 2,085,037 245K/s eta(英国中部时94% [=====================================================> ] 2,151,005 245K/s eta(英国中部时97% [=======================================================>] 2,212,813 245K/s eta(英国中部时100%[=========================================================>] 2,272,130 244K/s eta(英国中部时100%[=========================================================>] 2,272,130 244K/s in 24s
2016-05-23 03:05:11 (91.4 KB/s) - 已保存 “cacti-0.8.8b.tar.gz” )
# tar zxf cacti-0.8.8b.tar.gz
# ls
anaconda-ks.cfgcacti-0.8.8b.tar.gzinstall.log.syslog模板图片下载桌面
cacti-0.8.8b install.log 公共的 视频文档音乐
# mv cacti-0.8.8b/ /var/www/html && cd /var/www/html/cacti
-bash: cd: /var/www/html/cacti: 没有那个文件或目录
# mkdir /var/www/html/cacti
# mv cacti-0.8.8b/ /var/www/html && cd /var/www/html/cacti
mv: 无法获取"cacti-0.8.8b/" 的文件状态(stat): 没有那个文件或目录
# ls
anaconda-ks.cfg install.log 公共的视频文档音乐
cacti-0.8.8b.tar.gzinstall.log.syslog模板 图片下载桌面
# cd /var/www/html
# ls
cacticacti-0.8.8b
# ll
总用量 8
drwxr-xr-x.2 root root4096 5月23 03:06 cacti
drwxr-xr-x. 13 1000 users 4096 8月 7 2013 cacti-0.8.8b
# cd ./cacti
# ls
# ll
总用量 0
# cd ..
# cd ./cacti-0.8.8b/
# ls
about.php graph_image.php include rra
auth_changepassword.phpgraph.php index.php rra.php
auth_login.php graph_settings.php install scripts
cacti.sql graphs_items.php lib script_server.php
cdef.php graphs_new.php LICENSE script_server.pl
cli graphs.php log settings.php
cmd.php graph_templates_inputs.phplogout.php templates_export.php
color.php graph_templates_items.php plugins templates_import.php
data_input.php graph_templates.php plugins.php tree.php
data_queries.php graph_view.php poller_commands.phpuser_admin.php
data_sources.php graph_xport.php poller_export.php utilities.php
data_templates.php host.php poller.php
docs host_templates.php README
gprint_presets.php images resource
# cd ..
# ls
cacticacti-0.8.8b
# rm -rf cacti
# ls
cacti-0.8.8b
# mv cacti-0.8.8b/ cacti
# ls
cacti
# cd ./cacti/
# ls
about.php graph_image.php include rra
auth_changepassword.phpgraph.php index.php rra.php
auth_login.php graph_settings.php install scripts
cacti.sql graphs_items.php lib script_server.php
cdef.php graphs_new.php LICENSE script_server.pl
cli graphs.php log settings.php
cmd.php graph_templates_inputs.phplogout.php templates_export.php
color.php graph_templates_items.php plugins templates_import.php
data_input.php graph_templates.php plugins.php tree.php
data_queries.php graph_view.php poller_commands.phpuser_admin.php
data_sources.php graph_xport.php poller_export.php utilities.php
data_templates.php host.php poller.php
docs host_templates.php README
gprint_presets.php images resource
# mysqladmin -uroot -p create cacti
Enter password:
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: YES)'
# mysqladmin -u root -p password '1QAZ@wsx'
Enter password:
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: YES)'
# mysqladmin -u root -p
mysqladminVer 8.42 Distrib 5.1.73, for redhat-linux-gnu on x86_64
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Administration program for the mysqld daemon.
Usage: mysqladmin command command....
-c, --count=# Number of iterations to make. This works with -i
(--sleep) only.
--debug-check Check memory and open file usage at exit.
--debug-info Print some debug info at exit.
-f, --force Don't ask for confirmation on drop database; with
multiple commands, continue even if an error occurs.
-C, --compress Use compression in server/client protocol.
--character-sets-dir=name
Directory for character set files.
--default-character-set=name
Set the default character set.
-?, --help Display this help and exit.
-h, --host=name Connect to host.
-b, --no-beep Turn off beep on error.
-p, --password[=name]
Password to use when connecting to server. If password is
not given it's asked from the tty.
-P, --port=# Port number to use for connection or 0 for default to, in
order of preference, my.cnf, $MYSQL_TCP_PORT,
/etc/services, built-in default (3306).
--protocol=name The protocol to use for connection (tcp, socket, pipe,
memory).
-r, --relative Show difference between current and previous values when
used with -i. Currently only works with extended-status.
-O, --set-variable=name
Change the value of a variable. Please note that this
option is deprecated; you can set variables directly with
--variable-name=value.
-s, --silent Silently exit if one can't connect to server.
-S, --socket=name The socket file to use for connection.
-i, --sleep=# Execute commands repeatedly with a sleep between.
--ssl Enable SSL for connection (automatically enabled with
other flags).Disable with --skip-ssl.
--ssl-ca=name CA file in PEM format (check OpenSSL docs, implies
--ssl).
--ssl-capath=name CA directory (check OpenSSL docs, implies --ssl).
--ssl-cert=name X509 cert in PEM format (implies --ssl).
--ssl-cipher=name SSL cipher to use (implies --ssl).
--ssl-key=name X509 key in PEM format (implies --ssl).
--ssl-verify-server-cert
Verify server's "Common Name" in its cert against
hostname used when connecting. This option is disabled by
default.
-u, --user=name User for login if not current user.
-v, --verbose Write more information.
-V, --version Output version information and exit.
-E, --vertical Print output vertically. Is similar to --relative, but
prints output vertically.
-w, --wait[=#] Wait and retry if connection is down.
--connect_timeout=#
--shutdown_timeout=#
Variables (--variable-name=value)
and boolean options {FALSE|TRUE}Value (after reading options)
--------------------------------- -----------------------------
count 0
debug-check FALSE
debug-info FALSE
force FALSE
compress FALSE
character-sets-dir (No default value)
default-character-set (No default value)
host (No default value)
no-beep FALSE
port 0
relative FALSE
socket (No default value)
sleep 0
ssl FALSE
ssl-ca (No default value)
ssl-capath (No default value)
ssl-cert (No default value)
ssl-cipher (No default value)
ssl-key (No default value)
ssl-verify-server-cert FALSE
user root
verbose FALSE
vertical FALSE
connect_timeout 43200
shutdown_timeout 3600
Default options are read from the following files in the given order:
/etc/mysql/my.cnf /etc/my.cnf ~/.my.cnf
The following groups are read: mysqladmin client
The following options may be given as the first argument:
--print-defaults Print the program argument list and exit.
--no-defaults Don't read default options from any option file.
--defaults-file=# Only read default options from the given file #.
--defaults-extra-file=# Read this file after the global files are read.
Where command is a one or more of: (Commands may be shortened)
create databasename Create a new database
debug Instruct server to write debug information to log
drop databasename Delete a database and all its tables
extended-status Gives an extended status message from the server
flush-hosts Flush all cached hosts
flush-logs Flush all logs
flush-status Clear status variables
flush-tables Flush all tables
flush-threads Flush the thread cache
flush-privileges Reload grant tables (same as reload)
kill id,id,... Kill mysql threads
password new-password Change old password to new-password, MySQL 4.1 hashing.
old-password new-password Change old password to new-password in old format.
ping Check if mysqld is alive
processlist Show list of active threads in server
reload Reload grant tables
refresh Flush all tables and close and open logfiles
shutdown Take server down
status Gives a short status message from the server
start-slave Start slave
stop-slave Stop slave
variables Prints variables available
version Get version info from server
# MYSQL
-bash: MYSQL: command not found
# mysql
Welcome to the MySQL monitor.Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.1.73 Source distribution
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> set password for 'root'@'localhost' =password('1qaz@WSX');
Query OK, 0 rows affected (0.00 sec)
mysql> exit
Bye
# mysqladmin -uroot -p create cacti
Enter password:
# mysql -uroot -p cacti < cacti.sql
Enter password:
# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor.Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 5.1.73 Source distribution
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> grant all on cacti.* to cacti@localhost identified by '1qaz@WSX';
Query OK, 0 rows affected (0.01 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> exit
Bye
# vi include/config.php
# chown apache. /var/www/html/cacti -R
# chmod +x /var/www/html/cacti/rra /var/www/html/cacti/resource /var/www/html/cacti/scripts/ -R
# echo "*/5 * * * * cactiuser php /var/www/html/cacti/poller.php > /dev/null 2>&1">>/etc/crontab
# /etc/init.d/crond restart
停止 crond: [确定]
正在启动 crond: [确定]
#/usr/sbin/sestatus -v
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: enforcing
Mode from config file: enforcing
Policy version: 26
Policy from config file: targeted
Process contexts:
Current context: unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
Init context: system_u:system_r:init_t:s0
/sbin/mingetty system_u:system_r:getty_t:s0
/usr/sbin/sshd system_u:system_r:sshd_t:s0-s0:c0.c1023
File contexts:
Controlling term: unconfined_u:object_r:user_devpts_t:s0
/etc/passwd system_u:object_r:etc_t:s0
/etc/shadow system_u:object_r:shadow_t:s0
/bin/bash system_u:object_r:shell_exec_t:s0
/bin/login system_u:object_r:login_exec_t:s0
/bin/sh system_u:object_r:bin_t:s0 -> system_u:object_r:shell_exec_t:s0
/sbin/agetty system_u:object_r:getty_exec_t:s0
/sbin/init system_u:object_r:init_exec_t:s0
/sbin/mingetty system_u:object_r:getty_exec_t:s0
/usr/sbin/sshd system_u:object_r:sshd_exec_t:s0
# vi /etc/selinux/config
# cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
#
# reboot
Broadcast message from root@localhost.localdomain
(/dev/pts/1) at 3:23 ...
The system is going down for reboot NOW!
# cat /etc/httpd/conf.d/cacti.conf
Alias /cacti "/var/www/html/cacti"
<Location "/cacti">
Order Deny,Allow
# Deny from all
Allow from 127.0.0.1
Allow from ::1
Options Indexes Includes FollowSymLinks
</Location>
# These directories do not require access over HTTP
#
<Directory "/var/www/html/cacti">
AllowOverride Limit
Options FollowSymLinks
</Directory>
# /usr/sbin/sestatus -v
SELinux status: disabled
# service httpd start
正在启动 httpd:httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName
[确定]
#
楼主
我在虚拟机中安装的cacti中文版,提取流量值为5分钟,但是提取一个月的流量时却显示2个小时的值这是什么原因那
页:
[1]