Installation of Influxdb (CentOS)

Source: Internet
Author: User
Tags iptables influxdb

installation command:

# for 64-bit Systems
wget http://s3.amazonaws.com/influxdb/influxdb-latest-1.x86_64.rpm
sudo rpm-ivh influxdb-latest-1.x86_64.rpm

The specific installation process is as follows:

wget http://s3.amazonaws.com/influxdb/influxdb-latest-1.x86_64.rpm
--2014-11-10 00:03:38--http://s3.amazonaws.com/influxdb/influxdb-latest-1.x86_64.rpm
Resolving s3.amazonaws.com ... 54.231.10.248
Connecting to s3.amazonaws.com|54.231.10.248|:80 ... Connected.
HTTP request sent, awaiting response ... OK
length:16227107 (15M) [Binary/octet-stream]
Saving to: "influxdb-latest-1.x86_64.rpm"

100%[======================================>] 16,227,107 162k/s in 1m 44s

2014-11-10 00:05:23 (kb/s)-"influxdb-latest-1.x86_64.rpm" saved [16227107/16227107]

[[email protected] ~]$ ls
Documents influxdb-latest-1.x86_64.rpm

[email protected] ~]$ Su-
Password:
[Email protected] ~]#

[Email protected] ~]# rpm-ivh/home/ghj1976/influxdb-latest-1.x86_64.rpm
Preparing ... ########################################### [100%]
1:influxdb ########################################### [100%]
[[email protected] ~]# ls
Anaconda-ks.cfg Install.log Install.log.syslog
[Email protected] ~]# pwd
/root

Meet in the middle

User is not in the sudoers file. This incident would be reported.

Can be solved by the following way, or directly with the root of the account execution.

Http://www.linuxidc.com/Linux/2010-12/30386.htm

Start the service

[[email protected] ~]#/etc/init.d/influxdb start
Setting ulimit-n 4096
Starting the process Influxdb [OK]
INFLUXDB process was started [OK]

Since this is a local test virtual machine, I have directly shut down the iptable

[[email protected] ~]#/etc/init.d/iptables stop
Iptables:setting chains to Policy Accept:filter [OK]
iptables:flushing firewall rules: [OK]
iptables:unloading modules: [OK]

This virtual machine's IP is: 192.168.62.128, so I access the default port 8083, you can see the following interface:

http://192.168.62.128:8083/

The user name and password here are rooted by default, and you can create a database by logging in.

Initialize the data, and the query can look:

Let's start with Write point to add the data,

The input time Series Name is Log_lines

Values are {"line": "Tewtstestw 123213 2354325 ghj Guo Hongjun"}

After the output is successful, we execute the query: SELECT * from Log_lines, you can see the results of the query.

Resources:

Http://influxdb.com/docs/v0.8/introduction/getting_started.html

Http://influxdb.com/docs/v0.8/introduction/installation.html

Installation of Influxdb (CentOS)

Related Article

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.