您好,登錄后才能下訂單哦!
yum install httpd php php-gd php-pear rrdtool -y (rrdtool要添加非官方源) servie http start chkconfig http on service crond start chkconfig crond on wget http://www.network-weathermap.com/fi...rmap-0.97a.zip unzip php-weathermap-0.97a.zip mv weathermap/ /var/www/html/ (瀏覽器訪問地址為:http://xxx.xxx.xxx.xxx/weathermap/ chown -R apache:apache /var/www/html/weathermap/configs/
vi /var/www/html/weathermap/editor.php
vi /etc/crontab
*/5 * * * * root /usr/bin/php /var/www/html/weathermap/weathermap --config /var/www/html/weathermap/configs/simple.conf --image-uri ../weathermap/test.png
ln /test.png /var/www/html/weathermap/test.png
地址:http://www.network-weathermap.com/ma...ti-editor.html When you are happy that the world can't edit your maps, then enable the editor. This is done by editing the top of editor.php and changing $ENABLED=false; to $ENABLED=true; You should now be able to go to http://your.server/cacti/plugins/weathermap/editor.php in a browser, and get a welcome page that offers to load or create a config file. That's it. All done. Please see the editor manual page for more about using the editor! You can also edit an existing map from the Cacti web interface, by choosing Manage..Weathermaps and then clicking on the name of a config file in the list of active maps. The editor will open with that map loaded. Important Security Note: The editor allows anyone who can access editor.php to change the configuration files for your network weathermaps. There is no authentication built-in for editing, even with the Cacti Plugin. This is why the configuration file doesn't exist by default - the editor won't work until you choose to make it work. It's recommended that you either: change the ownership of configuration files so that the editor can't write to them once they are complete, or use your webserver's authentication and access control facilities to limit who can access the editor.php URL. On apache, this can be done using the FilesMatch directive and mod_access.
vi /etc/httpd/conf/httpd.conf
Order Deny,Allow Deny from all Allow from 127.0.0.1
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。