2010. 12. 17.
[UX] 사용자 경험 스케치
그동안 웹에서의 UX 책들만 읽어왔는데, 이 책은 제품자체에 대한 UX뿐 아니라 보다 넓은 범위에서의 UX를 포함을 하고 있다. 디자이너의 입장에서 바라본 프로세스 부분 중에서 기획과 디자인, 개발의 진행도를 그림으로 보여주며 이해시키는 부분이 인상깊다. 역시 많은 그림을 통한 설명이 이해를 도왔고 읽는데 지루하지 않다. 더구나 스케치와 초기 프로토타입을 제작하는 디자인 방법론은 가장 흥미있는 부분이었다. 개발자로서 읽어도 많은 깨달음을 얻을 수 있는 책이라고 생각한다.
[cacti] ERROR: Cannot connect to MySQL server on 'localhost'.
problem
log/cacti.log 에 다음과 같은 로그가 남았다면...
12/17/2010 07:00:10 PM - CMDPHP: Poller[0] ERROR: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.
solution
log/cacti.log 에 다음과 같은 로그가 남았다면...
12/17/2010 07:00:10 PM - CMDPHP: Poller[0] ERROR: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.
solution
include/config.php 파일을 보면 $database_hostname = "localhost"; 라고 되어있을텐데
$database_hostname = "127.0.0.1"; 로 변경하면 잘 작동한다.
[cacti] how to install cacti on CentOS 5.X 64bit
Required software(s)
Install the software
# yum install mysql-server mysql php-mysql php-pear php-common php-gd php-devel php php-mbstring php-cli php-snmp php-pear-Net-SMTP php-mysql httpd
- MySQL server : Store cacti data.
- NET-SNMP server : SNMP(Simple Network Management Protocol) is a protocol used for network management.
- PHP with net-snmp module : Access SNMP data using PHP.
- RRDTOOL(round robin database tool)
- Apache / lighttpd / nginx webserver : Web server to display graphs created with PHP and RRDTOOL.
Install the software
# yum install mysql-server mysql php-mysql php-pear php-common php-gd php-devel php php-mbstring php-cli php-snmp php-pear-Net-SMTP php-mysql httpd
Configure MySQL server
# mysql -u root -p
Enter password: **********
mysql> create database cacti;
mysql> use mysql;
mysql> GRANT ALL ON cacti.* TO cacti@localhost IDENTIFIED BY 'password';
mysql> FLUSH privileges;
mysql> quit
# mysql -u root -p
Enter password: **********
mysql> create database cacti;
mysql> use mysql;
mysql> GRANT ALL ON cacti.* TO cacti@localhost IDENTIFIED BY 'password';
mysql> FLUSH privileges;
mysql> quit
Install snmpd
# yum install net-snmp-utils php-snmp net-snmp-libs
# vi /etc/snmp/snmpd.conf
------------> append <----------------
.
.
com2sec local localhost public
group MyRWGroup v1 local
group MyRWGroup v2c local
group MyRWGroup usm local
view all included .1 80
access MyRWGroup "" any noauth exact all all none
syslocation Unknown (edit /etc/snmp/snmpd.conf)
syscontact Root (configure /etc/snmp/snmp.local.conf)
pass .1.3.6.1.4.1.4413.4.1 /usr/bin/ucd5820stat
# snmpwalk -v 1 -c public localhost IP-MIB::ipAdEntIfIndex
(output)
IP-MIB::ipAdEntIfIndex.your.ip.address = INTEGER: 2
IP_MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 1
Install cacti
download cacti-0.8.6i.tar.gz in /usr/local/src
# tar xzfv cacti-0.8.6i.tar.gz
# cp -Rf cacti-0.8.6i /usr/local/cacti/
# ln -s /usr/local/cacti/ /usr/local/apache/htdocs/cacti
# vi /usr/local/cacti/include/config.php
--------------->modify<------------------
#database_type = "mysql";
#database_default = "cacti";
$database_hostname = "127.0.0.1";
$database_username = "cacti";
$database_password = "password";
$database_port = "3306";
------------------------------------------
# mysql -u root -p cacti < /usr/local/cacti/cacti.sql
Configure crond
# crontab -e
-------------->append<----------------
*/5 * * * * php /usr/local/cacti/poller.php > /dev/null 2>&1
----------------------------------------
# service crond restart
Install cacti web console
go to http://your.ip.address/cacti/
click 'Next'
choose 'New Install' and click 'Next'
if all of Path is [FOUND], click 'Finish'
if you show "[NOT FOUND] PHP Binary Path", install php-cli
# yum install php-cli
Username: admin
Password: admin
reference site
cacti plug-in
install cacti
install cacti
more specific information about cacti
# yum install net-snmp-utils php-snmp net-snmp-libs
# vi /etc/snmp/snmpd.conf
------------> append <----------------
.
.
com2sec local localhost public
group MyRWGroup v1 local
group MyRWGroup v2c local
group MyRWGroup usm local
view all included .1 80
access MyRWGroup "" any noauth exact all all none
syslocation Unknown (edit /etc/snmp/snmpd.conf)
syscontact Root (configure /etc/snmp/snmp.local.conf)
pass .1.3.6.1.4.1.4413.4.1 /usr/bin/ucd5820stat
------------------------------------
# /etc/init.d/snmpd start
# chkconfig snmpd on# snmpwalk -v 1 -c public localhost IP-MIB::ipAdEntIfIndex
(output)
IP-MIB::ipAdEntIfIndex.your.ip.address = INTEGER: 2
IP_MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 1
Install cacti
download cacti-0.8.6i.tar.gz in /usr/local/src
# tar xzfv cacti-0.8.6i.tar.gz
# cp -Rf cacti-0.8.6i /usr/local/cacti/
# ln -s /usr/local/cacti/ /usr/local/apache/htdocs/cacti
# vi /usr/local/cacti/include/config.php
--------------->modify<------------------
#database_type = "mysql";
#database_default = "cacti";
$database_hostname = "127.0.0.1";
$database_username = "cacti";
$database_password = "password";
$database_port = "3306";
------------------------------------------
# mysql -u root -p cacti < /usr/local/cacti/cacti.sql
Configure crond
# crontab -e
-------------->append<----------------
*/5 * * * * php /usr/local/cacti/poller.php > /dev/null 2>&1
----------------------------------------
# service crond restart
Install cacti web console
go to http://your.ip.address/cacti/
click 'Next'
choose 'New Install' and click 'Next'
if all of Path is [FOUND], click 'Finish'
if you show "[NOT FOUND] PHP Binary Path", install php-cli
# yum install php-cli
Username: admin
Password: admin
reference site
cacti plug-in
install cacti
install cacti
more specific information about cacti
[rrdtool] how to install rrdtool on CentOS 5.X 64bit
1. add Dag RPM Repository
# vi /etc/yum.repos.d/Dag.repo
-----------------------------------
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=0
enabled=1
protetc=0
-----------------------------------
2. install rrdtool
# yum install rrdtool
2010. 12. 1.
[CentOS] Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
Mysql을 설치하고 데몬을 실행하려고 하는데 다음과 같은 에러가 뜬다면 이렇게 해보세요~
# /usr/local/mysql/bin/mysqladmin --version
ERROR 2002: Can't connect to local MySQL server through
socket '/tmp/mysql.sock' (2)
# chown -R root /usr/local/mysql
# chown -R mysql /usr/local/mysql/var
# chgrp -R mysql /usr/local/mysql/
참고사항
# /usr/local/mysql/bin/mysqld_safe --user=mysql&
...
... mysql ended <- 데몬 실행이 안된겁니다.
...
참고사이트 : http://mkluv.tistory.com/113
[CentOS] Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
Mysql을 설치하고 데몬을 실행하려고 하는데 다음과 같은 에러가 뜬다면 이렇게 해보세요~
# /usr/local/mysql/bin/mysqladmin --version
ERROR 2002: Can't connect to local MySQL server through
socket '/tmp/mysql.sock' (2)
# chown -R root /usr/local/mysql
# chown -R mysql /usr/local/mysql/var
# chgrp -R /usr/local/mysql/
# /usr/local/mysql/bin/mysqld_safe --user=mysql&
...
... mysql ended <- 데몬 실행이 안된겁니다.
...
참고사이트 : http://mkluv.tistory.com/113
라벨:
CentOS,
chgrp,
chown,
linux,
MySQL,
mysql.sock,
mysqladmin,
mysqld_safe,
TMP
피드 구독하기:
글 (Atom)