Installing software under the CentOS system

Source: Internet
Author: User
Tags kibana logstash

Installation and uninstallation of Linux files:

Export http_proxy=http://ctu-net-bcproxy.ubisoft.org:3128

wget (World Wide Web get)

wget Parameters [URL address] for linux system download software, similar to thunder, is a download software

General download to current directory using wget

wget Https://github.com/mobz/elasticsearch-head/archive/master.zip

#export http_proxy=http://ctu-net-bcproxy.ubisoft.org:3128 Export command to set system environment variables, only valid for current console

#wget http://download.redis.io/releases/redis-3.0.6.tar.gz

RPM (Redhatpackagemanager), for installation, uninstall. RPM Software

First, installation

Command format:

Rpm-i (or--install) options file1.rpm ... filen.rpm

Second, delete

Command format:

RPM-E (or--erase) options pkg1 ... pkgn

Third, upgrade

Command format

Rpm-u (or--upgrade) options file1.rpm ... filen.rpm

Iv. Inquiries

Command format:

Rpm-q (or--query) options

V. Verifying the installed Packages

Command format:

Rpm-v (or--verify, or-y) options

Yum command to install software online

Yum is Python-based, and note that Python's version may cause Yum to not work correctly.

You can configure all Yum downloads in/etc/yum.conf using HTTP proxy: Add the following line

http_proxy=http://ctu-net-bcproxy.ubisoft.org:3128

The/etc/yum.repos.d/folder has its own Yum configuration under each software, and yum.conf is the global configuration

Yum = Yellow dog Updater, modified main function is more convenient to add/remove/update RPM package

Http://www.2cto.com/os/201411/353353.html

-Y (when the installation process prompts you to select all "Yes"

"The image of this machine is the default configuration of the old agent" This is the god horse a situation?

Ap-get is a software installation method under Ubuntu.

/usr/bin is a running script for some of the software you install later

/bin are some of the system's instructions.

/usr/sbin placing some user-installed system-managed prerequisites

Installing jdk1.8

View the currently installed JDK version

Java-version

Centos

#cd/opt/

#wget--no-cookies--no-check-certificate--header "COOKIE:GPW_E24=HTTP%3A%2F%2FWWW.ORACLE.COM%2F; Oraclelicense=accept-securebackup-cookie "" Http://download.oracle.com/otn-pub/java/jdk/8u66-b17/jdk-8u66-linux-x64.tar.gz "

#tar Xzf jdk-8u66-linux-x64.tar.gz

#cd/opt/jdk1.8.0_66/

#alternatives--install/usr/bin/java Java/opt/jdk1.8.0_66/bin/java 2

#alternatives--config Java here will list all of the Java versions that were installed on the machine, allowing you to enter a version to be used as the current version.

Just pick the newest one we just loaded.

#export java_home=/opt/jdk1.8.0_66

#export jre_home=/opt/jdk1.8.0_66/jre# export path= $PATH:/opt/jdk1.8.0_66/bin:/opt/jdk1.8.0_66/jre/bin

#export path= $PATH:/opt/jdk1.8.0_66/bin:/opt/jdk1.8.0_66/jre/bin

Installing Kibana

#cd/USR/SRC

#wget https://download.elasticsearch.org/kibana/kibana/kibana-3.1.1.tar.gz

#tar XVF kibana*.tar.gz

#cd kibana*

#vim Config.js

Iptables-a input-p tcp-m TCP--dport 9200-j ACCEPT

Iptables-a input-p tcp-m TCP--dport 9300-j ACCEPT

Cp-r/usr/src/kibana-3.1.1/*/var/www/kibana3/

Use of Logstash:

Bin/logstash-e ' Input{stdin{}}output{stdout{codec=>rubydebug}} ' #启动logstash进程

Read File Sample Configuration

Input

File {

Path = ["/var/log/*.log", "/var/log/message"]

Type = "System"

Start_position = "Beginning"

}

}

Installing software under the CentOS system

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.