前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >《快学BigData》--Linux常用软件安装(14)

《快学BigData》--Linux常用软件安装(14)

作者头像
小徐
发布2023-03-06 21:12:06
1.8K0
发布2023-03-06 21:12:06
举报
文章被收录于专栏:GreenplumGreenplum

Linux常用软件安装

[root@hadoop1 opt]# yum -y install gcc make gcc-c++ openssl-devel flex byacc libpcap ncurses ncurses-devel libpcap-devel

1-1)、JDK安装

[root@hadoop1 nginx]# tar -zxvf jdk-7u80-linux-x64.tar.gz -C /usr/local/

[root@hadoop1 /]# vi /etc/profile

export JAVA_HOME=/home/jdk1.7

-C 是把文件解压到某个目录下

安装前请先把系统默认的安装包卸载掉:

[root@hadoop1 bin]# rpm -qa | grep jdk

[root@hadoop1 bin]# yum -y remove java-1.7.0-openjdk-1.7.0.131-2.6.9.0.el6_8.x86_64

如果遇到Java -version还是系统的配置,请执行以下操作:

[root@hadoop1 bin]# echo $JAVA_HOME

[root@hadoop1 bin]# which java

[root@hadoop1 bin]# mv /usr/bin/java /usr/bin/java_bak

[root@hadoop1 bin]# source /etc/profile

1-2)、安装tomcat

[root@hadoop3 local]# tar -zxvf apache-tomcat-7.0.69.tar.gz

[root@hadoop3 /]# vi /etc/profile

export TOMCAT_HOME=/usr/local/apache-tomcat-7.0.69

[root@hadoop3 /]# source /etc/profile

1-3)、安装nginx

[root@hadoop1 nginx]# tar -zxvf nginx-1.8.1.tar.gz -C /usr/local/

export NGINX_HOME=/usr/local/nginx/sbin

1-4)、安装MySQL

MySql

[root@hadoop1 ~]# yum list|grep mysql

Error: Cannot find a valid baseurl for repo: extras

这个问题可能是DNS没有配置好,建议重新配置DNS

vi /etc/resolv.conf

查看是否有rum命令

[root@hadoop1 ~]# rum remove mysql-libs

-bash: rum: command not found

搜索rum软件并安装

[root@hadoop1 ~]# yum list|grep rum

oniguruma.i686 5.9.1-3.1.el6 base

oniguruma.x86_64 5.9.1-3.1.el6 base

oniguruma-devel.i686 5.9.1-3.1.el6 base

oniguruma-devel.x86_64 5.9.1-3.1.el6 base

smc-suruma-fonts.noarch 04.2-11.el6 base

[root@hadoop1 ~]# yum install oniguruma.x86_64

安装mysql

[root@hadoop1 /]# service mysqld stop

[root@hadoop1 /]# yum remove mysql mysql-*

[root@hadoop1 /]# yum list installed | grep mysql

[root@hadoop1 /]# rpm -e --nodeps `rpm -qa | grep mysql`

[root@hadoop1/]# rpm -Uvh http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm

[root@hadoop1 /]# yum install mysql-community-server

[root@hadoop1 /]# mysql -V

[root@hadoop1 /]# service mysqld start

登录mysql密码为空,直接回车

[root@hadoop1 /]# mysql -uroot -p

MySql

安装下载:链接:http://pan.baidu.com/s/1jIiD3FK 密码:7kwf 或者登陆http://mirrors.sohu.com/mysql/网站下载。 如果无法下载请联系作者。

A)、下载并解压

查看本地的mysql安装包并删除

[root@hadoop1 ~]# yum list|grep mysql*

[root@hadoop1 ~]# yum remove mysql* mysql-*

[root@hadoop1 ~]# yum remove mysq-libs

查看正在使用的内核的版本

[root@hadoop1 ~]# uname -r

2.6.32-431.el6.x86_64

在线下载mysql5.7安装包

[root@hadoop1 opt]# wget http://mirrors.sohu.com/mysql/MySQL-5.7/mysql-5.7.17-1.el6.i686.rpm-bundle.tar

[root@hadoop1 opt]# chmod a+x mysql-5.7.17-1.el6.i686.rpm-bundle.tar

[root@hadoop1 opt]# tar xvf mysql-5.7.17-1.el6.i686.rpm-bundle.tar

赋给执行的权限

[root@hadoop1 opt]# chmod a+x *.rpm

安装mysql需要的包

[root@hadoop1 opt]# yum localinstall mysql-community-common-5.7.17-1.el6.i686.rpm

[root@hadoop1 opt]# yum localinstall mysql-community-libs-5.7.17-1.el6.i686.rpm

安装客户端

[root@hadoop1 opt]# yum localinstall mysql-community-client-5.7.17-1.el6.i686.rpm

安装服务端

[root@hadoop1 opt]# yum localinstall mysql-community-server-5.7.17-1.el6.i686.rpm

查看版本

[root@hadoop1 opt]# mysql -V

mysql Ver 14.14 Distrib 5.7.17, for Linux (i686) using EditLine wrapper

初始化表

[root@hadoop1 opt]# mysqld -initialize

查看初始的密码

[root@hadoop1 opt]# grep 'temporary password' /var/log/mysqld.log

2017-01-07T04:02:51.271722Z 1 [Note] A temporary password is generated for root@localhost: eqgF_AdFI4Wa

启动mysql

[root@hadoop1 opt]# service mysqld start

登陆mysql

[root@hadoop1 opt]# mysql -uroot -p

// 校验密码的强度。5.7要求用户的密码为复杂。

mysql> set global validate_password_policy=0;

mysql> SET PASSWORD = PASSWORD('123abc,.');

mysql> FLUSH PRIVILEGES;

MySql
A)、权限操作

开启mysql的远程登录权限

mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION;

Query OK, 0 rows affected (0.00 sec)

刷新使之立刻生效

mysql> flush privileges;

Query OK, 0 rows affected (0.00 sec)

mysql>grant select,insert,update,delete,create,drop on vtdc.employee to ‘joe@hadoop1’ identified by 'bigdata';

给来自hadoop1的用户joe分配可对数据库vtdc的employee表进行select,insert,update,delete,create,drop等操作的权限,并设定口令为bigdata。

mysql>grant all privileges on vtdc.* to ‘joe@hadoop1’ identified by 'bigdata';

给来自hadoop1的用户joe分配可对数据库vtdc所有表进行所有操作的权限,并设定口令为bigdata。

mysql>grant all privileges on *.* to ‘joe@hadoop1’ identified by 'bigdata';

给来自hadoop1的用户joe分配可对所有数据库的所有表进行所有操作的权限,并设定口令为bigdata。

mysql>grant all privileges on *.* to ‘joe@localhost’ identified by 'bigdata';

给本机用户joe分配可对所有数据库的所有表进行所有操作的权限,并设定口令为bigdata。

B)、修改Mysql密码

修改mysql密码

[root@hadoop1 conf]# mysql -uroot -p

mysql> use mysql;

Reading table information for completion of table and column names

You can turn off this feature to get a quicker startup with -A

Database changed

mysql> update user set password=password("123456") where user='root';

Query OK, 5 rows affected (0.01 sec)

Rows matched: 5 Changed: 5 Warnings: 0

mysql> flush privileges;

Query OK, 0 rows affected (0.00 sec)

C)、加载数据
Source

mysql> source /user.test.sql

Query OK, 0 rows affected (0.00 sec)

1-2)、命令行加载

[root@hadoop2open-falcon]# mysql -uroot -p123456 <scripts-master/db_schema/graph-db-schema.sql

Warning: Using a password on the command line interface can be insecure.

有警告提示,可以忽略,提示密码暴露在外部

1-3)、直接把数据加载到指定的数据库中

[root@hadoop2 sql]# mysql -uroot -p123456 lepus < lepus_table.sql

Warning: Using a password on the command line interface can be insecure.

[root@hadoop2 sql]# mysql -uroot -p123456 lepus < lepus_data.sql

Warning: Using a password on the command line interface can be insecure.

有警告提示,可以忽略,其中lepus 是数据库,lepus_table.sql是表的信息,lepus_data.sql 是表的数据,具体的可以查看:

http://blog.csdn.net/xfg0218/article/details/53207932

http://blog.csdn.net/xfg0218/article/details/53207908

D)、增加用户
1-1)、增加用户

用户名是:lepus

密码是:lepus

mysql> insert into mysql.user(Host,User,Password,ssl_cipher,x509_issuer,x509_subject) values('localhost','lepus',password('lepus'),'BLOB','BLOB','BLOB');

Query OK, 1 row affected (0.00 sec)

mysql> flush privileges;

Query OK, 0 rows affected (0.00 sec)

1-2)、权限操作

mysql> GRANT ALL PRIVILEGES ON *.* TO 'lepus'@'%' IDENTIFIED BY 'lepus' WITH GRANT OPTION;

Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;

Query OK, 0 rows affected (0.00 sec)

E)、设置开机自动启动

[root@hadoop2 redis]# chkconfig mysqld on

F)、Linux远程连接Mysql

[root@localhost etc]# mysql -ulepus -h 192.168.215.154 -p

Enter password:

-u 需要链接的username

-h 需要链接的IP

-p 登录密码

G)、查看mysql的端口

mysql> show global variables like 'port';

+---------------+-------+

| Variable_name | Value |

+---------------+-------+

| port | 3306 |

+---------------+-------+

1 row in set (0.01 sec)

1-4)、关于mysql的查询缓存
A)、查询缓存变量

mysql> show global status like 'qcache%';

+-------------------------+-----------+

| Variable_name | Value |

+-------------------------+-----------+

| Qcache_free_blocks | 22756 |

| Qcache_free_memory | 76764704 |

| Qcache_hits | 213028692 |

| Qcache_inserts | 208894227 |

| Qcache_lowmem_prunes | 4010916 |

| Qcache_not_cached | 13385031 |

| Qcache_queries_in_cache | 43560 |

| Qcache_total_blocks | 111212 |

+-------------------------+-----------+

MySQL查询缓存变量解释:

Qcache_free_blocks:缓存中相邻内存块的个数。数目大说明可能有碎片。FLUSH QUERY CACHE会对缓存中的碎片进行整理,从而得到一个空闲块。

Qcache_free_memory:缓存中的空闲内存。

Qcache_hits:每次查询在缓存中命中时就增大

Qcache_inserts:每次插入一个查询时就增大。命中次数除以插入次数就是不中比率。

Qcache_lowmem_prunes:缓存出现内存不足并且必须要进行清理以便为更多查询提供空间的次数。这个数字最好长时间来看;如果这个数字在不断增长,就表示可能碎片非常严重,或者内存很少。(上面的 free_blocks和free_memory可以告诉您属于哪种情况)

Qcache_not_cached:不适合进行MySQL查询缓存变量,通常是由于这些查询不是 SELECT 语句或者用了now()之类的函数。

Qcache_queries_in_cache:当前缓存的查询(和响应)的数量。

Qcache_total_blocks:缓存中块的数量。

我们再查询一下服务器关于query_cache的配置:

B)、查询缓存碎片

mysql> show variables like 'query_cache%';

+------------------------------+-----------+

| Variable_name | Value |

+------------------------------+-----------+

| query_cache_limit | 2097152 |

| query_cache_min_res_unit | 4096 |

| query_cache_size | 203423744 |

| query_cache_type | ON |

| query_cache_wlock_invalidate | OFF |

+------------------------------+-----------+

各字段的解释:

query_cache_limit:超过此大小的查询将不缓存

query_cache_min_res_unit:缓存块的最小大小

query_cache_size:查询缓存大小

query_cache_type:缓存类型,决定缓存什么样的查询,示例中表示不缓存 select sql_no_cache 查询

query_cache_wlock_invalidate:当有其他客户端正在对MyISAM表进行写操作时,如果查询在query cache中,是否返回cache结果还是等写操作完成再读表获取结果。

query_cache_min_res_unit的配置是一柄”双刃剑”,默认是4KB,设置值大对大数据查询有好处,但如果你的查询都是小数据查询,就容易造成内存碎片和浪费。

查询缓存碎片率 = Qcache_free_blocks / Qcache_total_blocks * 100%

如果查询缓存碎片率超过20%,可以用FLUSH QUERY CACHE整理缓存碎片,或者试试减小query_cache_min_res_unit,如果你的查询都是小数据量的话。

查询缓存利用率 = (query_cache_size - Qcache_free_memory) / query_cache_size * 100%

查询缓存利用率在25%以下的话说明query_cache_size设置的过大,可适当减小;查询缓存利用率在80%以上而且Qcache_lowmem_prunes > 50的话说明query_cache_size可能有点小,要不就是碎片太多。

查询缓存命中率 = (Qcache_hits - Qcache_inserts) / Qcache_hits * 100%

示例服务器 查询缓存碎片率 = 20.46%,查询缓存利用率 = 62.26%,查询缓存命中率 = 1.94%,命中率很差,可能写操作比较频繁吧,而且可能有些碎片。

1-5)、流量查看软件

软件下载:链接:http://pan.baidu.com/s/1hsiDcvq 密码:et9y 如果无法下载请联系作者。

A)、安装

[root@hadoop1 ifstat-1.1]# chmod a+x ifstat-1.1.tar.gz

[root@hadoop1 ifstat-1.1]# tar -zxvf ifstat-1.1.tar.gz

[root@hadoop1 ifstat-1.1]# cd ifstat-1.1

安装配置

[root@hadoop1 ifstat-1.1]# ./configure

编译并安装

[root@hadoop1 ifstat-1.1]# make && make install

B)、查看详细参数

[root@hadoop1 ifstat-1.1]# ifstat -help

usage: ifstat [-a] [-l] [-z] [-n] [-v] [-h] [-t] [-i if0,if1,...]

[-d drv[:opt]] [-s [comm@][#]host[/nn]] [-T] [-A] [-w]

[-W] [-S] [-b] [-q] [delay[/delay] [count]]

C)、测试

[root@hadoop1 ifstat-1.1]# ifstat

eth0

KB/s in KB/s out

0.27 0.13

0.30 0.12

0.12 0.12

0.18 0.12

0.39 0.12

0.39 0.12

[root@hadoop1 ifstat-1.1]# ifstat -a

lo eth0

KB/s in KB/s out KB/s in KB/s out

0.00 0.00 0.21 0.18

0.00 0.00 0.12 0.13

0.00 0.00 0.18 0.13

0.00 0.00 0.39 0.13

1-6)、lrzsz 软件的安装

A)、安装

[root@hadoop1 /]# yum list|grep lrzsz

lrzsz.x86_64 0.12.20-36.el7 @anaconda

[root@hadoop1 /]# yum install lrzsz.x86_64

Loaded plugins: fastestmirror, langpacks

base | 3.6 kB 00:00:00

extras | 3.4 kB 00:00:00

mysql-connectors-community | 2.5 kB 00:00:00

mysql-tools-community | 2.5 kB 00:00:00

mysql56-community | 2.5 kB 00:00:00

updates | 3.4 kB 00:00:00

(1/2): extras/7/x86_64/primary_db | 160 kB 00:00:00

(2/2): updates/7/x86_64/primary_db | 6.4 MB 00:02:07

Loading mirror speeds from cached hostfile

* base: mirrors.yun-idc.com

* extras: mirrors.tuna.tsinghua.edu.cn

* updates: mirrors.zju.edu.cn

Package lrzsz-0.12.20-36.el7.x86_64 already installed and latest version

Nothing to do

B)、测试

[root@hadoop2 /]# rz

在上传文件时文件的名字不要是以中文命名,否则会出现乱码现象。

1-7)、Python 安装

软件下载:

链接:http://pan.baidu.com/s/1kVnszXl 密码:ae9k

[root@localhost local]# tar -zxvf Python-2.7.1.tar.gz

[root@localhost local]# cd Python-2.7.1

[root@localhost local]# ./configure

[root@localhost local]# make && make install

[root@localhost local]# python -V

Python 2.6.6

或直接安装的形式

[root@hadoop1 ~]#yum list | grep python.x86_64

[root@hadoop1 ~]# yum install -y python.x86_64

1-8)、安装PHP

[root@localhost local]# yum install php.x86_64 -y

[root@localhost local]# php -v

PHP 5.3.3 (cli) (built: Aug 11 2016 20:33:53)

Copyright (c) 1997-2010 The PHP Group

Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

1-9)、Screen 软件的安装

A)、安装screen

[root@skycloud1 ~]# yum list|grep screen

[root@skycloud1 ~]# yum install screen.x86_64

B)、设置终端编码

[root@skycloud1 ~]# vi ~/.screenrc

escape ^Oo

caption always "%{Yk}%-w%50>%{rb}%n %t%{-}%+w%81<%{- Yk}%{Bk}|%=%{bk} %Y-%m-%d %C "

defencoding UTF-8

encoding UTF-8 GBK

vbell off

注意.screenrc一般放在~目录下,.screenrc是隐藏文件,前面有个.号

C)、screen常用命令

创建一个会话

#screen -S xiaoxu-hbase

查看已经创建的会话

# screen -ls

There are screens on:

56422.xiaoxu-ycsb (action)

56382.xiaoxu-hbase (Detached)

进入到action的会话中

# screen -r 56422

进入到Detached状态的会话

#screen -x 56382

screen

ctrl + o + c : 复制一个会话

ctrl + o + A :对会话进行重命名

ctrl + d : 删除当前的session

详细语法请查看:http://www.cnblogs.com/mchina/archive/2013/01/30/2880680.html

1-10)、nmon使用

ubuntu:sudo apt-get install nmon

other:sudo yum install nmon

nmon

下载请到 链接:http://pan.baidu.com/s/1nvE3fUL 密码:5hao 如果无法下载请联系作者。

nmon

[root@hadoop1 opt]# mkdir nmon

[root@hadoop1 opt]# unzip nmon-analyser.zip

Archive: nmon-analyser.zip

inflating: nmon_linux_14i.tar.gz

inflating: nmon_analyser_34a.zip

[root@hadoop1 opt]# tar -zxvf nmon_linux_14i.tar.gz -C /opt/nmon/

[root@hadoop1 opt]# cd nmon

[root@hadoop1 nmon]# cp nmon_x86_64_sles11 nmom

C)、配置环境变量

[root@hadoop1 nmon]# vi /etc/profile

export NMON_HOME=/opt/nmon

export PATH=PATH:NMON_HOME

[root@hadoop1 nmon]# source /etc/profile

D)、使用说明

[root@hadoop1 nmon]# nmon

选择选项进入不同的模式,同时按住Ctrl+c退出当前界面

其他的请使用nmon -hep 查看使用帮助

E)、参数说明

c = CPU 统计数据

m =内存

j =文件系统

d =磁盘输入/输出信息

n =网络方面的统计数字

V =虚拟内存

r =系统信息

N =NFS

k =内核信息

t =消耗资源最多的进程

. =只显示忙碌的磁盘/进程

v : 详细模式

-f 这是nmon必选参数,并且必须放在第一个,就是输出文件的意思

-s 表示nmon采样的频率单位为秒;

-c 表示nmon采样的次数;

-t 输出top process

F)、使用案例

$ nmon -F test-nmon.nmon -t -s 15 -c 40

查看工具下载:

http://download.csdn.net/download/xfg0218/9956899

1-11)、nload 软件的使用

yum

[root@hadoop1 ~]# yum list|grep ncurses

ncurses

[root@hadoop1 ~]# yum install -y ncurses*

c++

[root@hadoop1 ~]# yum -y install gcc make gcc-c++ openssl-devel

nload

https://sourceforge.net/projects/nload/?source=typ_redirect

nload

[root@hadoop1 opt]# tar -zxvf nload-0.7.4.tar.gz

nload

[root@hadoop1 opt]# cd nload-0.7.4

[root@hadoop1 nload-0.7.4]# ./configure

[root@hadoop1 nload-0.7.4]# make && make install

G)、查看帮助

[root@hadoop1 nload-0.7.4]# nload --help

H)、参数详解

-a:这个好像是全部数据的刷新时间周期,单位是秒,默认是300.

-i:进入网卡的流量图的显示比例最大值设置,默认10240 kBit/s.

-m:不显示流量图,只显示统计数据。

-o:出去网卡的流量图的显示比例最大值设置,默认10240 kBit/s.

-t:显示数据的刷新时间间隔,单位是毫秒,默认500。

-u:设置右边Curr、Avg、Min、Max的数据单位,默认是自动变的.注意大小写单位不同!

h|b|k|m|g h: auto, b: Bit/s, k: kBit/s, m: MBit/s etc.

H|B|K|M|G H: auto, B: Byte/s, K: kByte/s, M: MByte/s etc.

-U:设置右边Ttl的数据单位,默认是自动变的.注意大小写单位不同(与-u相同)!

Devices:自定义监控的网卡,默认是全部监控的,使用左右键切换。

1-12)、iftop软件的使用

A)、环境需要的软件

[root@hadoop1 opt]# yum install flex byacc libpcap ncurses ncurses-devel libpcap-devel

B)、iftop下载

wget http://www.ex-parrot.com/%7Epdw/iftop/download/iftop-0.17.tar.gz

C)、安装并编译

[root@hadoop1 opt]# tar -zxvf iftop-0.17.tar.gz

[root@hadoop1 opt]# cd iftop-0.17

[root@hadoop1 iftop-0.17]# ./configure

[root@hadoop1 iftop-0.17]# make && make install

iftop

[root@hadoop1 iftop-0.17]# iftop -help

iftop: display bandwidth usage on an interface by host

Synopsis: iftop -h | [-npbBP] [-i interface] [-f filter code] [-N net/mask]

-h display this message

-n don't do hostname lookups

-N don't convert port numbers to services

-p run in promiscuous mode (show traffic between other

hosts on the same network segment)

-b don't display a bar graph of traffic

-B Display bandwidth in bytes

-i interface listen on named interface

-f filter code use filter code to select packets to count

(default: none, but only IP packets are counted)

-F net/mask show traffic flows in/out of network

-P show ports as well as hosts

-m limit sets the upper limit for the bandwidth scale

-c config file specifies an alternative configuration file

iftop, version 0.17

copyright (c) 2002 Paul Warren <pdw@ex-parrot.com> and contributors

E)、参数详解

TX:发送流量

RX:接收流量

TOTAL:总流量

Cumm:运行iftop到目前时间的总流量

peak:流量峰值

rates:分别表示过去 2s 10s 40s 的平均流量

1-13)、htop 命令使用

Htop官网 :http://sourceforge.net/projects/htop/

[root@hadoop1 opt]# yum install -y htop

[root@hadoop1 opt]# htop

PID:进行的标识号

USER:运行此进程的用户

PRI:进程的优先级

NI:进程的优先级别值,默认的为0,可以进行调整

VIRT:进程占用的虚拟内存值

RES:进程占用的物理内存值

SHR:进程占用的共享内存值

S:进程的运行状况,R表示正在运行、S表示休眠,等待唤醒、Z表示僵死状态

CPU:该进程占用的CPU使用率

MEM:该进程占用的物理内存和总内存的百分比

TIME+:该进程启动后占用的总的CPU时间

COMMAND:进程启动的启动命令名称

其他的操作按F1 进行查看

1-14)、iotop 命令使用

[root@hadoop1 opt]# yum install iotop

[root@hadoop1 opt]# iotop

[root@hadoop1 opt] $ iotop --help 查看帮助信息

Options:

--version show program's version number and exit

-h, --help show this help message and exit

-o, --only only show processes or threads actually doing I/O

-b, --batch non-interactive mode

-n NUM, --iter=NUM number of iterations before ending [infinite]

-d SEC, --delay=SEC delay between iterations [1 second]

-p PID, --pid=PID processes/threads to monitor [all]

-u USER, --user=USER users to monitor [all]

-P, --processes only show processes, not all threads

-a, --accumulated show accumulated I/O instead of bandwidth

-k, --kilobytes use kilobytes instead of a human friendly unit

-t, --time add a timestamp on each line (implies --batch)

-q, --quiet suppress some lines of header (implies --batch)

1-15)、dstat 命令使用

[root@hadoop1 opt] sudo apt install dstat

[root@hadoop1 opt] dstat -h 查看帮助,请详细查看参数,其中一下参数比较重要:

-c, --cpu enable cpu stats

-d, --disk enable disk stats

-m, --mem enable memory stats

-n, --net enable network stats

-p, --proc enable process stats

[root@hadoop1 opt]$ dstat

[root@hadoop1 opt]$ dstat -m

1-16)、ag 命令使用

ag :比grep、ack更快的递归搜索文件内容

A)、ubuntu系统安装

[root@hadoop1 opt]$ yum install silversearcher-ag

B)、简单使用

详细使用请使用:$ag --help

root@hadoop1 opt]$ ag "s"

1.log

5:s

7:s

9:sss

2.log

1:sdsfefe

root@hadoop1 opt]$ ag "s" 1.log

5:s

7:s

9:sss

C)、制定过滤后缀的查找

$ ag -l --java "JDBC Multitable Consumer"

1-17)、mycli 命令使用

mysql客户端,支持语法高亮和命令补全

root@hadoop1 opt$ yum install mycli

root@hadoop1 opt]$ mycli -h localhost -uroot

Password:

Version: 1.8.1

Chat: https://gitter.im/dbcli/mycli

Mail: https://groups.google.com/forum/#!forum/mycli-users

Home: http://mycli.net

Thanks to the contributor - jweiland.net

mysql root@localhost:(none)> show DATABASES;

可以体验一下快捷键补全的效果

1-18)、axel 命令使用

root@hadoop1 opt]$ yum install axel

root@hadoop1 opt]$ axel --help

用法: axel [选项] 地址 1 [地址 2] [地址…]

--max-speed=x-s x指定最大速率(字节/秒)

--num-connections=x-n x指定最大连接数

--output=f-o f指定本地输出文件

--search[=x]-S [x]搜索镜像并从 X 服务器下载

--header=x-H x添加报头字符串

--user-agent=x-U x设置用户代理

--no-proxy-N不使用任何代理服务器

--insecure-k不校验 SSL 证书

--quiet-q使用输出简单信息模式

--verbose-v更多状态信息

--alternate-a另一种进度指示器

--help-h帮助信息

--version-V版本信息

root@hadoop1 opt]$sudo axel -n 20 http://releases.ubuntu.com/17.04/ubuntu-17.04-desktop-i386.iso

1-19)、bwm-ng 命令使用

A)、bwm-ng安装

Ubuntu 安装

$ sudo apt-get install bwm-ng

B)、执行bwm-ng

$ sudo bwm-ng

可以看出每个网卡网络流量的信息

1-20)、网络分析抓包工具wireshark-qt

A)、安装wireshark-qt

Ubuntu 安装

$ sudo apt install wireshark-qt

B)、使用wireshark

$ sudo wireshark

1-21)、文件比较工具

以下软件适用于ubuntu直接安装,主要介绍meld与diffuse安装与使用

A)、meld软件安装

$ sudo apt-get install meld

B)、meld软件查看效果
C)、diffuse软件安装

#sudo apt-get install diffuse

D)、diffuse软件查看效果
本文参与 腾讯云自媒体同步曝光计划,分享自微信公众号。
原始发表:2018-02-01,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 河马coding 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 1-1)、JDK安装
  • 1-2)、安装tomcat
  • 1-3)、安装nginx
  • 1-4)、安装MySQL
    • MySql
      • MySql
        • A)、下载并解压
      • MySql
        • A)、权限操作
        • B)、修改Mysql密码
        • C)、加载数据
        • D)、增加用户
        • E)、设置开机自动启动
        • F)、Linux远程连接Mysql
        • G)、查看mysql的端口
      • 1-4)、关于mysql的查询缓存
        • A)、查询缓存变量
        • B)、查询缓存碎片
    • 1-5)、流量查看软件
      • A)、安装
        • B)、查看详细参数
          • C)、测试
          • 1-6)、lrzsz 软件的安装
            • A)、安装
              • B)、测试
              • 1-7)、Python 安装
              • 1-8)、安装PHP
              • 1-9)、Screen 软件的安装
                • A)、安装screen
                  • B)、设置终端编码
                    • C)、screen常用命令
                      • screen
                      • 1-10)、nmon使用
                        • nmon
                          • nmon
                            • C)、配置环境变量
                              • D)、使用说明
                                • E)、参数说明
                                  • F)、使用案例
                                  • 1-11)、nload 软件的使用
                                    • yum
                                      • ncurses
                                        • c++
                                          • nload
                                            • nload
                                              • nload
                                                • G)、查看帮助
                                                  • H)、参数详解
                                                  • 1-12)、iftop软件的使用
                                                    • A)、环境需要的软件
                                                      • B)、iftop下载
                                                        • C)、安装并编译
                                                          • iftop
                                                            • E)、参数详解
                                                            • 1-13)、htop 命令使用
                                                            • 1-14)、iotop 命令使用
                                                            • 1-15)、dstat 命令使用
                                                            • 1-16)、ag 命令使用
                                                              • A)、ubuntu系统安装
                                                                • B)、简单使用
                                                                  • C)、制定过滤后缀的查找
                                                                  • 1-17)、mycli 命令使用
                                                                  • 1-18)、axel 命令使用
                                                                  • 1-19)、bwm-ng 命令使用
                                                                    • A)、bwm-ng安装
                                                                      • B)、执行bwm-ng
                                                                      • 1-20)、网络分析抓包工具wireshark-qt
                                                                        • A)、安装wireshark-qt
                                                                          • B)、使用wireshark
                                                                          • 1-21)、文件比较工具
                                                                            • A)、meld软件安装
                                                                              • B)、meld软件查看效果
                                                                                • C)、diffuse软件安装
                                                                                  • D)、diffuse软件查看效果
                                                                                  相关产品与服务
                                                                                  云数据库 SQL Server
                                                                                  腾讯云数据库 SQL Server (TencentDB for SQL Server)是业界最常用的商用数据库之一,对基于 Windows 架构的应用程序具有完美的支持。TencentDB for SQL Server 拥有微软正版授权,可持续为用户提供最新的功能,避免未授权使用软件的风险。具有即开即用、稳定可靠、安全运行、弹性扩缩等特点。
                                                                                  领券
                                                                                  问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档