分词器,接受一个字符流,将它分割为独立的tokens词元,通常是独立的单词,然后输出tokens流 例如,whitespace tokenizer遇到空白字符串分割文本 分词器还负责记录各个term词条的顺序或position位置,用于phrase短语和word proximity词近邻查询 以及原始词的开始start和结束end的chacter offsets字符偏移量 ES内置了很多分词器,可以用来构建自定义分词器
分词器,接受一个字符流,将它分割为独立的tokens词元,通常是独立的单词,然后输出tokens流
例如,whitespace tokenizer遇到空白字符串分割文本
分词器还负责记录各个term词条的顺序或position位置,用于phrase短语和word proximity词近邻查询
以及原始词的开始start和结束end的chacter offsets字符偏移量
ES内置了很多分词器,可以用来构建自定义分词器
vagrant ssh Last login: Wed Jul 10 10:29:39 2024 from 10.0.2.2 [vagrant@localhost ~]$ su root Password: [root@localhost vagrant]# cd /mydata [root@localhost mydata]# ls elasticsearch mysql redis [root@localhost mydata]# cd elasticsearch/ [root@localhost elasticsearch]# ls config data plugins [root@localhost elasticsearch]# docker exec -it "docker exec" requires at least 2 arguments. See 'docker exec --help'. Usage: docker exec [OPTIONS] CONTAINER COMMAND [ARG...] Execute a command in a running container [root@localhost elasticsearch]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 5a879124a74b kibana:7.4.2 "/usr/local/bin/dumb…" 5 days ago Up 54 minutes 0.0.0.0:5601->5601/tcp, :::5601->5601/tcp kibana 012bbe8c7c26 elasticsearch:7.4.2 "/usr/local/bin/dock…" 5 days ago Up 54 minutes 0.0.0.0:9200->9200/tcp, :::9200->9200/tcp, 0.0.0.0:9300->9300/tcp, :::9300->9300/tcp elasticsearch 25a5439186fa d445c0adc9a5 "docker-entrypoint.s…" 2 months ago Up 54 minutes 4369/tcp, 5671/tcp, 15691-15692/tcp, 25672/tcp, 0.0.0.0:15672->15672/tcp, :::15672->15672/tcp, 0.0.0.0:5673->5672/tcp, :::5673->5672/tcp rabbit db61879bdaf3 redis "docker-entrypoint.s…" 4 months ago Up 54 minutes 0.0.0.0:6379->6379/tcp, :::6379->6379/tcp redis 8b875b01624e mysql:5.7 "docker-entrypoint.s…" 4 months ago Up 54 minutes 0.0.0.0:3306->3306/tcp, :::3306->3306/tcp, 33060/tcp mysql [root@localhost elasticsearch]# docker exec -it 012b "docker exec" requires at least 2 arguments. See 'docker exec --help'. Usage: docker exec [OPTIONS] CONTAINER COMMAND [ARG...] Execute a command in a running container [root@localhost elasticsearch]# cd /bin [root@localhost bin]# ls [ grep nl-tctree-list sg_unmap addr2line groff nl-util-addr sg_verify alias grops nm sg_vpd applydeltarpm grotty nmcli sg_write_buffer apropos groups nm-online sg_write_long ar grub2-editenv nmtui sg_write_same arch grub2-file nmtui-connect sg_wr_mode as grub2-fstest nmtui-edit sg_xcopy audit2allow grub2-glue-efi nmtui-hostname sh audit2why grub2-kbdcomp nohup sha1sum aulast grub2-menulst2cfg nproc sha224sum aulastlog grub2-mkfont nroff sha256sum ausyscall grub2-mkimage nsenter sha384sum auvirt grub2-mklayout nss-policy-check sha512sum awk grub2-mknetdir numfmt show-changed-rco base64 grub2-mkpasswd-pbkdf2 objcopy showconsolefont basename grub2-mkrelpath objdump show-installed bash grub2-mkrescue od showkey bashbug grub2-mkstandalone oldfind shred bashbug-64 grub2-render-label open shuf bc grub2-script-check openssl signver bg grub2-syslinux2cfg openvt size bond2team gsettings os-prober skill bootctl gsoelim p11-kit slabinfo bunzip2 gtar package-cleanup slabtop busctl gtbl page_owner_sort sleep bzcat gtroff passwd slirp4netns bzcmp gunzip paste slogin bzdiff gzexe pathchk snice bzgrep gzip pchrt soelim bzip2 head pflags sort bzip2recover hexdump pgawk sotruss bzless hostid pgrep split bzmore hostname pic sprof cal hostnamectl pinentry sqlite3 ca-legacy i386 pinentry-curses ssh captoinfo iconv ping ssh-add cat id ping6 ssh-agent catchsegv idiag-socket-details pinky ssh-copy-id catman idn pk12util ssh-keygen cd igawk pkaction ssh-keyscan centrino-decode info pkcheck ssltap certutil infocmp pkcs1-conv stat c++filt infokey pkexec stdbuf chacl infotocap pkg-config strings chage install pkill strip chardetect ionice pkla-admin-identities stty chattr ipcalc pkla-check-authorization su chcat ipcmk pkttyagent sudo chcon ipcrm pldd sudoedit checkmodule ipcs pmap sudoreplay checkpolicy iptables-xml post-grohtml sum chfn isosize powernow-k8-decode sync chgrp jobs pr systemctl chmem join preconv systemd-analyze chmod journalctl pre-grohtml systemd-ask-password chown kbdinfo printenv systemd-cat chronyc kbd_mode printf systemd-cgls chrt kbdrate prlimit systemd-cgtop chsh kernel-install ps systemd-coredumpctl chvt keyctl psfaddtable systemd-delta cifscreds kill psfgettable systemd-detect-virt cksum kmod psfstriptable systemd-escape clear last psfxtable systemd-firstboot cmp lastb ptaskset systemd-hwdb cmsutil lastlog ptx systemd-inhibit col lchfn pwd systemd-loginctl colcrt lchsh pwdx systemd-machine-id-setup colrm ld pwmake systemd-notify column ld.bfd pwscore systemd-nspawn combinedeltarpm ldd pydoc systemd-path comm ld.gold python systemd-run command less python2 systemd-stdio-bridge containerd lessecho python2.7 systemd-sysv-convert containerd-shim lesskey qemu-ga systemd-tmpfiles containerd-shim-runc-v1 lesspipe.sh quota systemd-tty-ask-password-agent containerd-shim-runc-v2 lexgrog quotasync tabs coredumpctl link ranlib tac cp linux32 raw tail cpio linux64 read tailf cpupower linux-boot-prober readelf tar crlutil ln readlink taskset crontab loadkeys realpath tbl csplit loadunimap recode-sr-latin teamd csslint-0.6 locale rename teamdctl ctr localectl renice teamnl curl localedef repoclosure tee cut logger repodiff test cvtsudoers login repo-graph testgdbm date loginctl repomanage tic db_archive logname repoquery timedatectl db_checkpoint look repo-rss timeout db_deadlock ls reposync tload db_dump lsattr repotrack tmon db_dump185 lsblk rescan-scsi-bus.sh toe db_hotbackup lscpu reset top db_load lsinitrd resizecons touch db_log_verify lsipc rev tput db_printlog lslocks rm tr db_recover lslogins rmail tracepath db_replicate lsmem rmail.postfix tracepath6 db_stat lsns rmdir troff db_tuner lsscsi rootlesskit true db_upgrade lua rootlesskit-docker-proxy truncate dbus-binding-tool luac rpcgen trust dbus-cleanup-sockets lz4 rpm tset dbus-daemon lz4c rpm2cpio tsort dbus-monitor lz4cat rpmdb tty dbus-run-session machinectl rpmdumpheader turbostat dbus-send mailq rpmkeys tzselect dbus-test-tool mailq.postfix rpmquery udevadm dbus-update-activation-environment make rpmverify ul dbus-uuidgen makedb rsync ulockmgr_server db_verify makedeltarpm rsyslog-recover-qi.pl umask dc man runc umount dd mandb runcon unalias deallocvt manpath run-parts uname debuginfo-install mapscrn rvi unexpand df mcookie rview unicode_start dgawk md5sum sandbox unicode_stop diff mesg scp uniq diff3 mkdir script unlink dir mkfifo scriptreplay unlz4 dircolors mkinitrd scsi_logging_level unshare dirname mknod scsi_mandat unxz dmesg mktemp scsi_readcap update-ca-trust dnsdomainname modutil scsi_ready update-mime-database docker more scsi-rescan uptime dockerd mount scsi_satl urlgrabber dockerd-rootless-setuptool.sh mountpoint scsi_start users dockerd-rootless.sh msgattrib scsi_stop usleep docker-proxy msgcat scsi_temperature utmpdump domainname msgcmp sdiff uuidgen dracut msgcomm secon vdir du msgconv sed verifytree dumpkeys msgen sedismod VGAuthService dwp msgexec sedispol vi echo msgfilter semodule_package view egrep msgfmt seq vlock eject msggrep setarch vmhgfs-fuse elfedit msghack setcifsacl vmstat env msginit setfacl vm-support envsubst msgmerge setfont vmtoolsd eqn msgunfmt setkeycodes vmware-checkvm ex msguniq setleds vmware-hgfsclient expand mv setmetamode vmware-namespace-cmd expr namei setpriv vmware-rpctool factor ndptool setsid vmware-toolbox-cmd fallocate needs-restarting setterm vmware-vgauth-cmd false neqn setup-nsssysinit vmware-xferlogs fc nettle-hash setup-nsssysinit.sh w fg nettle-lfib-stream setvtrgb wait fgconsole newaliases sexp-conv wall fgrep newaliases.postfix sftp watch file newgidmap sg watchgnupg find newgrp sg_compare_and_write wc findmnt newuidmap sg_copy_results wdctl find-repos-of-install nf-ct-add sg_dd whatis fipscheck nf-ct-list sg_decode_sense whereis fipshmac nf-exp-add sg_emc_trespass which firewall-cmd nf-exp-delete sg_format whiptail firewall-offline-cmd nf-exp-list sg_get_config who flock nf-log sg_get_lba_status whoami fmt nf-monitor sg_ident write fold nf-queue sginfo x86_64 free ngettext sg_inq x86_energy_perf_policy fuse-overlayfs nice sg_logs xargs fusermount nisdomainname sg_luns xgettext gapplication nl sg_map xmlcatalog gawk nl-addr-add sg_map26 xmllint gdbus nl-addr-delete sgm_dd xmlsec1 gencat nl-addr-list sg_modes xmlwf genl-ctrl-list nl-class-add sg_opcodes xsltproc geqn nl-class-delete sgp_dd xz getcifsacl nl-classid-lookup sg_persist xzcat getconf nl-class-list sg_prevent xzcmp getent nl-cls-add sg_raw xzdec getfacl nl-cls-delete sg_rbuf xzdiff getkeycodes nl-cls-list sg_rdac xzegrep getopt nl-fib-lookup sg_read xzfgrep getopts nl-link-enslave sg_read_block_limits xzgrep gettext nl-link-ifindex2name sg_read_buffer xzless gettext.sh nl-link-list sg_readcap xzmore gio nl-link-name2ifindex sg_read_long yes gio-querymodules-64 nl-link-release sg_reassign ypdomainname glib-compile-schemas nl-link-set sg_referrals yum gmake nl-link-stats sg_requests yum-builddep gneqn nl-list-caches sg_reset yum-config-manager gnroff nl-list-sockets sg_rmsn yum-debug-dump gpasswd nl-monitor sg_rtpg yum-debug-restore gpg nl-neigh-add sg_safte yumdownloader gpg2 nl-neigh-delete sg_sanitize yum-groups-manager gpg-agent nl-neigh-list sg_sat_identify zcat gpgconf nl-neightbl-list sg_sat_phy_event zcmp gpg-connect-agent nl-pktloc-lookup sg_sat_set_features zdiff gpg-error nl-qdisc-add sg_scan zegrep gpgparsemail nl-qdisc-delete sg_senddiag zfgrep gpgsplit nl-qdisc-list sg_ses zforce gpgv nl-route-add sg_start zgrep gpgv2 nl-route-delete sg_stpg zless gpg-zip nl-route-get sg_sync zmore gpic nl-route-list sg_test_rwbuf znew gprof nl-rule-list sg_turs zsoelim [root@localhost bin]# cd /bash bash: cd: /bash: No such file or directory [root@localhost bin]# cd bash/ bash: cd: bash/: Not a directory [root@localhost bin]# cd / [root@localhost /]# cd /bin/bash bash: cd: /bin/bash: Not a directory [root@localhost /]# docker exec -it 012b "docker exec" requires at least 2 arguments. See 'docker exec --help'. Usage: docker exec [OPTIONS] CONTAINER COMMAND [ARG...] Execute a command in a running container [root@localhost /]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 5a879124a74b kibana:7.4.2 "/usr/local/bin/dumb…" 5 days ago Up 57 minutes 0.0.0.0:5601->5601/tcp, :::5601->5601/tcp kibana 012bbe8c7c26 elasticsearch:7.4.2 "/usr/local/bin/dock…" 5 days ago Up 57 minutes 0.0.0.0:9200->9200/tcp, :::9200->9200/tcp, 0.0.0.0:9300->9300/tcp, :::9300->9300/tcp elasticsearch 25a5439186fa d445c0adc9a5 "docker-entrypoint.s…" 2 months ago Up 57 minutes 4369/tcp, 5671/tcp, 15691-15692/tcp, 25672/tcp, 0.0.0.0:15672->15672/tcp, :::15672->15672/tcp, 0.0.0.0:5673->5672/tcp, :::5673->5672/tcp rabbit db61879bdaf3 redis "docker-entrypoint.s…" 4 months ago Up 57 minutes 0.0.0.0:6379->6379/tcp, :::6379->6379/tcp redis 8b875b01624e mysql:5.7 "docker-entrypoint.s…" 4 months ago Up 57 minutes 0.0.0.0:3306->3306/tcp, :::3306->3306/tcp, 33060/tcp mysql [root@localhost /]# docker exec -it 012bbe8c7c26 /bin/bash [root@012bbe8c7c26 elasticsearch]# pwd /usr/share/elasticsearch [root@012bbe8c7c26 elasticsearch]# ls LICENSE.txt NOTICE.txt README.textile bin config data jdk lib logs modules plugins
vagrant ssh
Last login: Wed Jul 10 10:29:39 2024 from 10.0.2.2
[vagrant@localhost ~]$ su root
Password:
[root@localhost vagrant]# cd /mydata
[root@localhost mydata]# ls
elasticsearch mysql redis
[root@localhost mydata]# cd elasticsearch/
[root@localhost elasticsearch]# ls
config data plugins
[root@localhost elasticsearch]# docker exec -it
"docker exec" requires at least 2 arguments.
See 'docker exec --help'.Usage: docker exec [OPTIONS] CONTAINER COMMAND [ARG...]
Execute a command in a running container
[root@localhost elasticsearch]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5a879124a74b kibana:7.4.2 "/usr/local/bin/dumb…" 5 days ago Up 54 minutes 0.0.0.0:5601->5601/tcp, :::5601->5601/tcp kibana
012bbe8c7c26 elasticsearch:7.4.2 "/usr/local/bin/dock…" 5 days ago Up 54 minutes 0.0.0.0:9200->9200/tcp, :::9200->9200/tcp, 0.0.0.0:9300->9300/tcp, :::9300->9300/tcp elasticsearch
25a5439186fa d445c0adc9a5 "docker-entrypoint.s…" 2 months ago Up 54 minutes 4369/tcp, 5671/tcp, 15691-15692/tcp, 25672/tcp, 0.0.0.0:15672->15672/tcp, :::15672->15672/tcp, 0.0.0.0:5673->5672/tcp, :::5673->5672/tcp rabbit
db61879bdaf3 redis "docker-entrypoint.s…" 4 months ago Up 54 minutes 0.0.0.0:6379->6379/tcp, :::6379->6379/tcp redis
8b875b01624e mysql:5.7 "docker-entrypoint.s…" 4 months ago Up 54 minutes 0.0.0.0:3306->3306/tcp, :::3306->3306/tcp, 33060/tcp mysql
[root@localhost elasticsearch]# docker exec -it 012b
"docker exec" requires at least 2 arguments.
See 'docker exec --help'.Usage: docker exec [OPTIONS] CONTAINER COMMAND [ARG...]
Execute a command in a running container
[root@localhost elasticsearch]# cd /bin
[root@localhost bin]# ls
[ grep nl-tctree-list sg_unmap
addr2line groff nl-util-addr sg_verify
alias grops nm sg_vpd
applydeltarpm grotty nmcli sg_write_buffer
apropos groups nm-online sg_write_long
ar grub2-editenv nmtui sg_write_same
arch grub2-file nmtui-connect sg_wr_mode
as grub2-fstest nmtui-edit sg_xcopy
audit2allow grub2-glue-efi nmtui-hostname sh
audit2why grub2-kbdcomp nohup sha1sum
aulast grub2-menulst2cfg nproc sha224sum
aulastlog grub2-mkfont nroff sha256sum
ausyscall grub2-mkimage nsenter sha384sum
auvirt grub2-mklayout nss-policy-check sha512sum
awk grub2-mknetdir numfmt show-changed-rco
base64 grub2-mkpasswd-pbkdf2 objcopy showconsolefont
basename grub2-mkrelpath objdump show-installed
bash grub2-mkrescue od showkey
bashbug grub2-mkstandalone oldfind shred
bashbug-64 grub2-render-label open shuf
bc grub2-script-check openssl signver
bg grub2-syslinux2cfg openvt size
bond2team gsettings os-prober skill
bootctl gsoelim p11-kit slabinfo
bunzip2 gtar package-cleanup slabtop
busctl gtbl page_owner_sort sleep
bzcat gtroff passwd slirp4netns
bzcmp gunzip paste slogin
bzdiff gzexe pathchk snice
bzgrep gzip pchrt soelim
bzip2 head pflags sort
bzip2recover hexdump pgawk sotruss
bzless hostid pgrep split
bzmore hostname pic sprof
cal hostnamectl pinentry sqlite3
ca-legacy i386 pinentry-curses ssh
captoinfo iconv ping ssh-add
cat id ping6 ssh-agent
catchsegv idiag-socket-details pinky ssh-copy-id
catman idn pk12util ssh-keygen
cd igawk pkaction ssh-keyscan
centrino-decode info pkcheck ssltap
certutil infocmp pkcs1-conv stat
c++filt infokey pkexec stdbuf
chacl infotocap pkg-config strings
chage install pkill strip
chardetect ionice pkla-admin-identities stty
chattr ipcalc pkla-check-authorization su
chcat ipcmk pkttyagent sudo
chcon ipcrm pldd sudoedit
checkmodule ipcs pmap sudoreplay
checkpolicy iptables-xml post-grohtml sum
chfn isosize powernow-k8-decode sync
chgrp jobs pr systemctl
chmem join preconv systemd-analyze
chmod journalctl pre-grohtml systemd-ask-password
chown kbdinfo printenv systemd-cat
chronyc kbd_mode printf systemd-cgls
chrt kbdrate prlimit systemd-cgtop
chsh kernel-install ps systemd-coredumpctl
chvt keyctl psfaddtable systemd-delta
cifscreds kill psfgettable systemd-detect-virt
cksum kmod psfstriptable systemd-escape
clear last psfxtable systemd-firstboot
cmp lastb ptaskset systemd-hwdb
cmsutil lastlog ptx systemd-inhibit
col lchfn pwd systemd-loginctl
colcrt lchsh pwdx systemd-machine-id-setup
colrm ld pwmake systemd-notify
column ld.bfd pwscore systemd-nspawn
combinedeltarpm ldd pydoc systemd-path
comm ld.gold python systemd-run
command less python2 systemd-stdio-bridge
containerd lessecho python2.7 systemd-sysv-convert
containerd-shim lesskey qemu-ga systemd-tmpfiles
containerd-shim-runc-v1 lesspipe.sh quota systemd-tty-ask-password-agent
containerd-shim-runc-v2 lexgrog quotasync tabs
coredumpctl link ranlib tac
cp linux32 raw tail
cpio linux64 read tailf
cpupower linux-boot-prober readelf tar
crlutil ln readlink taskset
crontab loadkeys realpath tbl
csplit loadunimap recode-sr-latin teamd
csslint-0.6 locale rename teamdctl
ctr localectl renice teamnl
curl localedef repoclosure tee
cut logger repodiff test
cvtsudoers login repo-graph testgdbm
date loginctl repomanage tic
db_archive logname repoquery timedatectl
db_checkpoint look repo-rss timeout
db_deadlock ls reposync tload
db_dump lsattr repotrack tmon
db_dump185 lsblk rescan-scsi-bus.sh toe
db_hotbackup lscpu reset top
db_load lsinitrd resizecons touch
db_log_verify lsipc rev tput
db_printlog lslocks rm tr
db_recover lslogins rmail tracepath
db_replicate lsmem rmail.postfix tracepath6
db_stat lsns rmdir troff
db_tuner lsscsi rootlesskit true
db_upgrade lua rootlesskit-docker-proxy truncate
dbus-binding-tool luac rpcgen trust
dbus-cleanup-sockets lz4 rpm tset
dbus-daemon lz4c rpm2cpio tsort
dbus-monitor lz4cat rpmdb tty
dbus-run-session machinectl rpmdumpheader turbostat
dbus-send mailq rpmkeys tzselect
dbus-test-tool mailq.postfix rpmquery udevadm
dbus-update-activation-environment make rpmverify ul
dbus-uuidgen makedb rsync ulockmgr_server
db_verify makedeltarpm rsyslog-recover-qi.pl umask
dc man runc umount
dd mandb runcon unalias
deallocvt manpath run-parts uname
debuginfo-install mapscrn rvi unexpand
df mcookie rview unicode_start
dgawk md5sum sandbox unicode_stop
diff mesg scp uniq
diff3 mkdir script unlink
dir mkfifo scriptreplay unlz4
dircolors mkinitrd scsi_logging_level unshare
dirname mknod scsi_mandat unxz
dmesg mktemp scsi_readcap update-ca-trust
dnsdomainname modutil scsi_ready update-mime-database
docker more scsi-rescan uptime
dockerd mount scsi_satl urlgrabber
dockerd-rootless-setuptool.sh mountpoint scsi_start users
dockerd-rootless.sh msgattrib scsi_stop usleep
docker-proxy msgcat scsi_temperature utmpdump
domainname msgcmp sdiff uuidgen
dracut msgcomm secon vdir
du msgconv sed verifytree
dumpkeys msgen sedismod VGAuthService
dwp msgexec sedispol vi
echo msgfilter semodule_package view
egrep msgfmt seq vlock
eject msggrep setarch vmhgfs-fuse
elfedit msghack setcifsacl vmstat
env msginit setfacl vm-support
envsubst msgmerge setfont vmtoolsd
eqn msgunfmt setkeycodes vmware-checkvm
ex msguniq setleds vmware-hgfsclient
expand mv setmetamode vmware-namespace-cmd
expr namei setpriv vmware-rpctool
factor ndptool setsid vmware-toolbox-cmd
fallocate needs-restarting setterm vmware-vgauth-cmd
false neqn setup-nsssysinit vmware-xferlogs
fc nettle-hash setup-nsssysinit.sh w
fg nettle-lfib-stream setvtrgb wait
fgconsole newaliases sexp-conv wall
fgrep newaliases.postfix sftp watch
file newgidmap sg watchgnupg
find newgrp sg_compare_and_write wc
findmnt newuidmap sg_copy_results wdctl
find-repos-of-install nf-ct-add sg_dd whatis
fipscheck nf-ct-list sg_decode_sense whereis
fipshmac nf-exp-add sg_emc_trespass which
firewall-cmd nf-exp-delete sg_format whiptail
firewall-offline-cmd nf-exp-list sg_get_config who
flock nf-log sg_get_lba_status whoami
fmt nf-monitor sg_ident write
fold nf-queue sginfo x86_64
free ngettext sg_inq x86_energy_perf_policy
fuse-overlayfs nice sg_logs xargs
fusermount nisdomainname sg_luns xgettext
gapplication nl sg_map xmlcatalog
gawk nl-addr-add sg_map26 xmllint
gdbus nl-addr-delete sgm_dd xmlsec1
gencat nl-addr-list sg_modes xmlwf
genl-ctrl-list nl-class-add sg_opcodes xsltproc
geqn nl-class-delete sgp_dd xz
getcifsacl nl-classid-lookup sg_persist xzcat
getconf nl-class-list sg_prevent xzcmp
getent nl-cls-add sg_raw xzdec
getfacl nl-cls-delete sg_rbuf xzdiff
getkeycodes nl-cls-list sg_rdac xzegrep
getopt nl-fib-lookup sg_read xzfgrep
getopts nl-link-enslave sg_read_block_limits xzgrep
gettext nl-link-ifindex2name sg_read_buffer xzless
gettext.sh nl-link-list sg_readcap xzmore
gio nl-link-name2ifindex sg_read_long yes
gio-querymodules-64 nl-link-release sg_reassign ypdomainname
glib-compile-schemas nl-link-set sg_referrals yum
gmake nl-link-stats sg_requests yum-builddep
gneqn nl-list-caches sg_reset yum-config-manager
gnroff nl-list-sockets sg_rmsn yum-debug-dump
gpasswd nl-monitor sg_rtpg yum-debug-restore
gpg nl-neigh-add sg_safte yumdownloader
gpg2 nl-neigh-delete sg_sanitize yum-groups-manager
gpg-agent nl-neigh-list sg_sat_identify zcat
gpgconf nl-neightbl-list sg_sat_phy_event zcmp
gpg-connect-agent nl-pktloc-lookup sg_sat_set_features zdiff
gpg-error nl-qdisc-add sg_scan zegrep
gpgparsemail nl-qdisc-delete sg_senddiag zfgrep
gpgsplit nl-qdisc-list sg_ses zforce
gpgv nl-route-add sg_start zgrep
gpgv2 nl-route-delete sg_stpg zless
gpg-zip nl-route-get sg_sync zmore
gpic nl-route-list sg_test_rwbuf znew
gprof nl-rule-list sg_turs zsoelim
[root@localhost bin]# cd /bash
bash: cd: /bash: No such file or directory
[root@localhost bin]# cd bash/
bash: cd: bash/: Not a directory
[root@localhost bin]# cd /
[root@localhost /]# cd /bin/bash
bash: cd: /bin/bash: Not a directory
[root@localhost /]# docker exec -it 012b
"docker exec" requires at least 2 arguments.
See 'docker exec --help'.Usage: docker exec [OPTIONS] CONTAINER COMMAND [ARG...]
Execute a command in a running container
[root@localhost /]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS
NAMES
5a879124a74b kibana:7.4.2 "/usr/local/bin/dumb…" 5 days ago Up 57 minutes 0.0.0.0:5601->5601/tcp, :::5601->5601/tcp kibana
012bbe8c7c26 elasticsearch:7.4.2 "/usr/local/bin/dock…" 5 days ago Up 57 minutes 0.0.0.0:9200->9200/tcp, :::9200->9200/tcp, 0.0.0.0:9300->9300/tcp, :::9300->9300/tcp elasticsearch
25a5439186fa d445c0adc9a5 "docker-entrypoint.s…" 2 months ago Up 57 minutes 4369/tcp, 5671/tcp, 15691-15692/tcp, 25672/tcp, 0.0.0.0:15672->15672/tcp, :::15672->15672/tcp, 0.0.0.0:5673->5672/tcp, :::5673->5672/tcp rabbit
db61879bdaf3 redis "docker-entrypoint.s…" 4 months ago Up 57 minutes 0.0.0.0:6379->6379/tcp, :::6379->6379/tcp redis
8b875b01624e mysql:5.7 "docker-entrypoint.s…" 4 months ago Up 57 minutes 0.0.0.0:3306->3306/tcp, :::3306->3306/tcp, 33060/tcp mysql
[root@localhost /]# docker exec -it 012bbe8c7c26 /bin/bash
[root@012bbe8c7c26 elasticsearch]# pwd
/usr/share/elasticsearch
[root@012bbe8c7c26 elasticsearch]# ls
LICENSE.txt NOTICE.txt README.textile bin config data jdk lib logs modules plugins