Falcon-web file Monitoring

Source: Internet
Author: User
Tags inotify administrator password mysql login

1, configure the pre-environment, download inotify-tools-3.14,libiconv-1.14 source package, install the Libcurl library file through Yum, and because the final compilation hint is missing MySQL library file, yum is not installed, so I have one more step to install MySQL 5.6 of the steps.


Install Apache Environment

# yum Install-y httpd


Installing Inotify-tools

# tar Xvzf inotify-tools-3.14.tar.gz

# CD inotify-tools-3.14

#./configure

# make

# make Install

Refer to "http://my.oschina.net/tuyang/blog/187462" from SOSG here

如果是32位系统  ln -s /usr/local/lib/libinotifytools .so.0 /usr/lib/libinotifytools .so.0 如果是64位系统  ln -s /usr/local/lib/libinotifytools .so.0 /usr/lib64/libinotifytools .so.0 无论32或者64位系统都执行  echo 104857600 > /proc/sys/fs/inotify/max_user_watches echo ‘echo 104857600 > /proc/sys/fs/inotify/max_user_watches‘ >> /etc/rc . local


Installing Libiconv

# tar Xvzf libiconv-1.14.tar.gz

# CD libiconv-1.14

#./configure--prefix=/usr/local

# make

# make Install

# ln-s/usr/local/lib/libiconv.so.2/usr/lib64/libiconv.so


Installing Libcurl

# yum Install-y Libcurl


Install MySQL

# RPM-IVH mysql-server-***

# RPM-IVH mysql-devel-***

# RPM-IVH mysql-client-***

# RPM-IVH mysql-shared-***


2, according to official website steps to install

The first step, unzip and check the program compilation environment

# TAR-ZXVF Falcon-master.tar.gz
# CP-RF falcon-master/*/var/www/html/* The following folders are under/var/www/html/*
# cd/var/www/html/release/
# chmod A+x check.sh
#./check.sh
See the following information to prove that the program compilation environment is ready
Found inotify success!
Found Inotifytools success!
Found Mysql-dev Environment success!

Step two, install the Falcon Control Center

#vim./falconconsole/public/config.inc.php
Modify the database connection information in the configuration file, if the control center and the monitor are not installed on the same host, make sure that the monitored host has access to the MySQL database on the host where the control center resides
Note here that the MySQL user name password, the configuration file defaults to 123456, but the new installation of MySQL generally do not have a password.
The browser runs http://IP/falconconsole/install.php, installs the control center (where the database is primarily established, and the Administrator password)

Step three, modify the monitor configuration file and compile

The main setting of the database connection information, need to monitor the Web directory with "/" End
# Vim Src/conf/global.conf
# CD release/
# make
After running, the Falcon file is generated under the release folder

Fourth step, background running monitoring program

# nohup./falcon start >falcon.log 2>&1 &
# PS Aux|grep "Falcon"
Root 2981 0.2 0.3 9352 1848 pts/0 S 04:46 0:00./falcon start

The program will generate a log file under the current running directory Falcon.log
Monitoring details can be viewed through the access control center (e.g. http://127.0.0.1/falconconsole/index.php)


Encounter problems

1. Start MySQL login hint error 1045 (28000): Access denied for user ' root ' @ ' localhost ' (using Password:no)

# service MySQL Stop
# Mysqld_safe--user=mysql--skip-grant-tables--skip-networking &
# mysql-u Root MySQL

# mysql>update User Set Password=password ("[email protected]") where user= "root";

# Mysql>flush privileges;

# Mysql>quit

# service MySQL Restart

# mysql-u Root-p

Enter Password: [email protected]

# Mysql>set password for ' root ' @ ' localhost ' =password (' [email protected] ');

# Mysql>quit

This article is from the "Naiteluode" blog, make sure to keep this source http://233260.blog.51cto.com/223260/1539735

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.