lrwxrwxrwx 1 root root 19 8月 11 13:02 elasticsearch -> elasticsearch-2.3.5
-> Installing mobz/elasticsearch-head...
Plugins directory [/home/ops/elk/elasticsearch/plugins] does not exist. Creating...
Trying https://github.com/mobz/elasticsearch-head/archive/master.zip ...
Downloading ....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................DONE
Verifying https://github.com/mobz/elasticsearch-head/archive/master.zip checksums if available ...
NOTE: Unable to verify checksum for downloaded plugin (unable to find .sha1 or .md5 file to verify)
[root@ops1 bin]# su elkstack
[elkstack@ops1 bin]$ ll
总用量 324
-rwxr-xr-x 1 elkstack elkstack 5551 7月 27 18:34 elasticsearch
-rw-rw-r-- 1 elkstack elkstack 909 7月 27 18:34 elasticsearch.bat
-rw-rw-r-- 1 elkstack elkstack 3307 7月 27 18:34 elasticsearch.in.bat
-rwxr-xr-x 1 elkstack elkstack 2814 7月 27 18:34 elasticsearch.in.sh
-rw-rw-r-- 1 elkstack elkstack 104448 7月 27 00:09 elasticsearch-service-mgr.exe
-rw-rw-r-- 1 elkstack elkstack 103936 7月 27 00:09 elasticsearch-service-x64.exe
-rw-rw-r-- 1 elkstack elkstack 80896 7月 27 00:09 elasticsearch-service-x86.exe
-rwxr-xr-x 1 elkstack elkstack 2992 7月 27 18:34 plugin
-rw-rw-r-- 1 elkstack elkstack 1303 7月 27 18:34 plugin.bat
-rw-rw-r-- 1 elkstack elkstack 6501 7月 27 18:34 service.bat
[elkstack@ops1 bin]$ ll
总用量 324
-rwxr-xr-x 1 elkstack elkstack 5551 7月 27 18:34 elasticsearch
-rw-rw-r-- 1 elkstack elkstack 909 7月 27 18:34 elasticsearch.bat
-rw-rw-r-- 1 elkstack elkstack 3307 7月 27 18:34 elasticsearch.in.bat
-rwxr-xr-x 1 elkstack elkstack 2814 7月 27 18:34 elasticsearch.in.sh
-rw-rw-r-- 1 elkstack elkstack 104448 7月 27 00:09 elasticsearch-service-mgr.exe
-rw-rw-r-- 1 elkstack elkstack 103936 7月 27 00:09 elasticsearch-service-x64.exe
-rw-rw-r-- 1 elkstack elkstack 80896 7月 27 00:09 elasticsearch-service-x86.exe
-rwxr-xr-x 1 elkstack elkstack 2992 7月 27 18:34 plugin
-rw-rw-r-- 1 elkstack elkstack 1303 7月 27 18:34 plugin.bat
-rw-rw-r-- 1 elkstack elkstack 6501 7月 27 18:34 service.bat
[elkstack@ops1 bin]$ ./elasticsearch
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /tmp/elasticsearch/logs/91_cluster.log (权限不够)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:133)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:223)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:842)
at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768)
at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:648)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:514)
at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:440)
at org.elasticsearch.common.logging.log4j.LogConfigurator.configure(LogConfigurator.java:128)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:243)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)
log4j:ERROR Either File or DatePattern options are not set for appender
.
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /tmp/elasticsearch/logs/91_cluster_deprecation.log (权限不够)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:133)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:223)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:842)
at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768)
at org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConfigurator.java:672)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:516)
at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:440)
at org.elasticsearch.common.logging.log4j.LogConfigurator.configure(LogConfigurator.java:128)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:243)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)
log4j:ERROR Either File or DatePattern options are not set for appender [deprecation_log_file].
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /tmp/elasticsearch/logs/91_cluster_index_indexing_slowlog.log (权限不够)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:133)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:223)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:842)
at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768)
at org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConfigurator.java:672)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:516)
at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:440)
at org.elasticsearch.common.logging.log4j.LogConfigurator.configure(LogConfigurator.java:128)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:243)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)
log4j:ERROR Either File or DatePattern options are not set for appender [index_indexing_slow_log_file].
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /tmp/elasticsearch/logs/91_cluster_index_search_slowlog.log (权限不够)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:133)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:223)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:842)
at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768)
at org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConfigurator.java:672)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:516)
at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:440)
at org.elasticsearch.common.logging.log4j.LogConfigurator.configure(LogConfigurator.java:128)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:243)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)
log4j:ERROR Either File or DatePattern options are not set for appender [index_search_slow_log_file].
^C[elkstack@ops1 bin]$ sudo chown -R elkstack:elkstack /tmp/elasticsearch/
bash: sudo: command not found
[elkstack@ops1 bin]$ su
密码:
su: 密码不正确
[elkstack@ops1 bin]$ 91power@123
bash: 91power@123: command not found
[elkstack@ops1 bin]$ su
密码:
[root@ops1 bin]# chown -R elkstack:elkstack /tmp/elasticsearch/
[root@ops1 bin]# su elkstack
[elkstack@ops1 bin]$ ll
总用量 324
-rwxr-xr-x 1 elkstack elkstack 5551 7月 27 18:34 elasticsearch
-rw-rw-r-- 1 elkstack elkstack 909 7月 27 18:34 elasticsearch.bat
-rw-rw-r-- 1 elkstack elkstack 3307 7月 27 18:34 elasticsearch.in.bat
-rwxr-xr-x 1 elkstack elkstack 2814 7月 27 18:34 elasticsearch.in.sh
-rw-rw-r-- 1 elkstack elkstack 104448 7月 27 00:09 elasticsearch-service-mgr.exe
-rw-rw-r-- 1 elkstack elkstack 103936 7月 27 00:09 elasticsearch-service-x64.exe
-rw-rw-r-- 1 elkstack elkstack 80896 7月 27 00:09 elasticsearch-service-x86.exe
-rwxr-xr-x 1 elkstack elkstack 2992 7月 27 18:34 plugin
-rw-rw-r-- 1 elkstack elkstack 1303 7月 27 18:34 plugin.bat
-rw-rw-r-- 1 elkstack elkstack 6501 7月 27 18:34 service.bat
[elkstack@ops1 bin]$ ./elasticsearch
[2016-08-11 13:17:23,106][WARN ][bootstrap ] unable to install syscall filter: seccomp unavailable: CONFIG_SECCOMP not compiled into kernel, CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER are needed
[2016-08-11 13:17:23,730][INFO ][node ] [node0] version[2.3.5], pid[3471], build[90f439f/2016-07-27T10:36:52Z]
[2016-08-11 13:17:23,730][INFO ][node ] [node0] initializing ...
[2016-08-11 13:17:25,539][INFO ][plugins ] [node0] modules [reindex, lang-expression, lang-groovy], plugins [head], sites [head]
[2016-08-11 13:17:25,602][INFO ][env ] [node0] using [1] data paths, mounts [[/ (/dev/mapper/vg_ops1-lv_root)]], net usable_space [41.6gb], net total_space [49gb], spins? [possibly], types [ext4]
[2016-08-11 13:17:25,602][INFO ][env ] [node0] heap size [990.7mb], compressed ordinary object pointers [true]
[2016-08-11 13:17:25,602][WARN ][env ] [node0] max file descriptors [4096] for elasticsearch process likely too low, consider increasing to at least [65536]
[2016-08-11 13:17:29,564][INFO ][node ] [node0] initialized
[2016-08-11 13:17:29,565][INFO ][node ] [node0] starting ...
Exception in thread "main" BindTransportException[Failed to resolve host null]; nested: UnknownHostException[ops1: unknown error];
Likely root cause: java.net.UnknownHostException: ops1: unknown error
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
at java.net.InetAddress.getAllByName0(InetAddress.java:1276)
at java.net.InetAddress.getAllByName(InetAddress.java:1192)
at java.net.InetAddress.getAllByName(InetAddress.java:1126)
at org.elasticsearch.common.network.NetworkService.resolveInternal(NetworkService.java:266)
at org.elasticsearch.common.network.NetworkService.resolveInetAddresses(NetworkService.java:209)
at org.elasticsearch.common.network.NetworkService.resolveBindHostAddresses(NetworkService.java:122)
at org.elasticsearch.transport.netty.NettyTransport.bindServerBootstrap(NettyTransport.java:424)
at org.elasticsearch.transport.netty.NettyTransport.doStart(NettyTransport.java:321)
at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:68)
at org.elasticsearch.transport.TransportService.doStart(TransportService.java:182)
at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:68)
at org.elasticsearch.node.Node.start(Node.java:278)
at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:206)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:272)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)
Refer to the log for complete error details.
[2016-08-11 13:17:29,919][INFO ][node ] [node0] stopping ...
[2016-08-11 13:17:29,926][INFO ][node ] [node0] stopped
[2016-08-11 13:17:29,926][INFO ][node ] [node0] closing ...
[2016-08-11 13:17:29,949][INFO ][node ] [node0] closed
[elkstack@ops1 bin]$ vim /etc/hosts
[elkstack@ops1 bin]$ su
密码:
[root@ops1 bin]# vim /etc/ss
ssh/ ssl/
[root@ops1 bin]# vim /etc/ssh/
moduli sshd_config ssh_host_dsa_key.pub ssh_host_key.pub ssh_host_rsa_key.pub
ssh_config ssh_host_dsa_key ssh_host_key ssh_host_rsa_key
[root@ops1 bin]# vim /etc/ssh/ssh
ssh_config ssh_host_dsa_key ssh_host_key ssh_host_rsa_key
sshd_config ssh_host_dsa_key.pub ssh_host_key.pub ssh_host_rsa_key.pub
[root@ops1 bin]# vim /etc/ssh/ssh
ssh_config ssh_host_dsa_key ssh_host_key ssh_host_rsa_key
sshd_config ssh_host_dsa_key.pub ssh_host_key.pub ssh_host_rsa_key.pub
[root@ops1 bin]# vim /etc/ssh/sshd_config
[root@ops1 bin]# visudo /etc/sudoers
bash: visudo: command not found
[root@ops1 bin]# visudo
bash: visudo: command not found
[root@ops1 bin]# vimsudo
bash: vimsudo: command not found
[root@ops1 bin]# visudoer
bash: visudoer: command not found
[root@ops1 bin]# vi
vigr vim vimdiff vimtutor vipw
[root@ops1 bin]# vi
vigr vim vimdiff vimtutor vipw
[root@ops1 bin]# s
Display all 124 possibilities? (y or n)
[root@ops1 bin]# su
su suexec sulogin sum sushell suspend
[root@ops1 bin]# su
su suexec sulogin sum sushell suspend
[root@ops1 bin]# visudo
bash: visudo: command not found
[root@ops1 bin]# yum install sudo -y
已加载插件:fastestmirror
设置安装进程
Loading mirror speeds from cached hostfile
epel/metalink | 4.8 kB 00:00
* base: mirrors.neusoft.edu.cn
* epel: mirrors.neusoft.edu.cn
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.tuna.tsinghua.edu.cn
base | 3.7 kB 00:00
epel | 4.3 kB 00:00
epel/primary_db | 5.9 MB 00:10
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
解决依赖关系
--> 执行事务检查
---> Package sudo.x86_64 0:1.8.6p3-24.el6 will be 安装
--> 处理依赖关系 vim-minimal,它被软件包 sudo-1.8.6p3-24.el6.x86_64 需要
--> 执行事务检查
---> Package vim-minimal.x86_64 2:7.4.629-5.el6 will be 安装
--> 完成依赖关系计算
依赖关系解决
=================================================================================================================
软件包 架构 版本 仓库 大小
=================================================================================================================
正在安装:
sudo x86_64 1.8.6p3-24.el6 base 710 k
为依赖而安装:
vim-minimal x86_64 2:7.4.629-5.el6 base 422 k
事务概要
=================================================================================================================
Install 2 Package(s)
总下载量:1.1 M
Installed size: 3.2 M
下载软件包:
(1/2): sudo-1.8.6p3-24.el6.x86_64.rpm | 710 kB 00:01
(2/2): vim-minimal-7.4.629-5.el6.x86_64.rpm | 422 kB 00:00
-----------------------------------------------------------------------------------------------------------------
总计 488 kB/s | 1.1 MB 00:02
运行 rpm_check_debug
执行事务测试
事务测试成功
执行事务
正在安装 : 2:vim-minimal-7.4.629-5.el6.x86_64 1/2
正在安装 : sudo-1.8.6p3-24.el6.x86_64 2/2
Verifying : sudo-1.8.6p3-24.el6.x86_64 1/2
Verifying : 2:vim-minimal-7.4.629-5.el6.x86_64 2/2
已安装:
sudo.x86_64 0:1.8.6p3-24.el6
作为依赖被安装:
vim-minimal.x86_64 2:7.4.629-5.el6
完毕!
[root@ops1 bin]# vim /etc/sysconfig/iptables
[root@ops1 bin]# visudu
bash: visudu: command not found
[root@ops1 bin]# whereis sudo
sudo: /usr/bin/sudo /etc/sudo.conf /usr/share/man/man8/sudo.8.gz
[root@ops1 bin]# sudo
usage: sudo [-D level] -h | -K | -k | -V
usage: sudo -v [-AknS] [-D level] [-g groupname|#gid] [-p prompt] [-u user name|#uid]
usage: sudo -l[l] [-AknS] [-D level] [-g groupname|#gid] [-p prompt] [-U user name] [-u user name|#uid] [-g
groupname|#gid] [command]
usage: sudo [-AbEHknPS] [-r role] [-t type] [-C fd] [-D level] [-g groupname|#gid] [-p prompt] [-u user
name|#uid] [-g groupname|#gid] [VAR=value] [-i|-s] [<command>]
usage: sudo -e [-AknS] [-r role] [-t type] [-C fd] [-D level] [-g groupname|#gid] [-p prompt] [-u user
name|#uid] file ...
[root@ops1 bin]# v
vdir vgconvert vgimport vgremove vi vimtutor
vgcfgbackup vgcreate vgimportclone vgrename view vipw
vgcfgrestore vgdisplay vgmerge vgs vigr visudo
vgchange vgexport vgmknodes vgscan vim vmstat
vgck vgextend vgreduce vgsplit vimdiff
[root@ops1 bin]# v
vdir vgconvert vgimport vgremove vi vimtutor
vgcfgbackup vgcreate vgimportclone vgrename view vipw
vgcfgrestore vgdisplay vgmerge vgs vigr visudo
vgchange vgexport vgmknodes vgscan vim vmstat
vgck vgextend vgreduce vgsplit vimdiff
[root@ops1 bin]# vi
vi view vigr vim vimdiff vimtutor vipw visudo
[root@ops1 bin]# vi
vi view vigr vim vimdiff vimtutor vipw visudo
[root@ops1 bin]# visudo
[root@ops1 bin]# chgrp elkstach -g wheel
chgrp:无效选项 -- g
请尝试执行"chgrp --help"来获取更多信息。
[root@ops1 bin]# chgrp elkstach -G wheel
chgrp:无效选项 -- G
请尝试执行"chgrp --help"来获取更多信息。
[root@ops1 bin]# chgrp elkstach wheel
chgrp: 无效的组:"elkstach"
[root@ops1 bin]# chgrp elkstack wheel
chgrp: 无法访问"wheel": 没有那个文件或目录
[root@ops1 bin]# chgrp elkstack ^Ceel
[root@ops1 bin]# visudo
[root@ops1 bin]# su elkstack
[elkstack@ops1 bin]$ sudo ifconfig
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
[sudo] password for elkstack:
eth0 Link encap:Ethernet HWaddr 00:0C:29:F6:21:CB
inet addr:192.168.0.91 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fef6:21cb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:597771131 errors:0 dropped:0 overruns:0 frame:0
TX packets:1886595 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:49296973078 (45.9 GiB) TX bytes:2328447066 (2.1 GiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:93 errors:0 dropped:0 overruns:0 frame:0
TX packets:93 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10714 (10.4 KiB) TX bytes:10714 (10.4 KiB)
[elkstack@ops1 bin]$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:F6:21:CB
inet addr:192.168.0.91 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fef6:21cb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:597786061 errors:0 dropped:0 overruns:0 frame:0
TX packets:1886606 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:49298167828 (45.9 GiB) TX bytes:2328449356 (2.1 GiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:93 errors:0 dropped:0 overruns:0 frame:0
TX packets:93 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10714 (10.4 KiB) TX bytes:10714 (10.4 KiB)
[elkstack@ops1 bin]$ netstat -tnlp
(No info could be read for "-p": geteuid()=500 but you should be root.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:3690 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:3322 0.0.0.0:* LISTEN -
tcp 0 0 ::ffff:127.0.0.1:8005 :::* LISTEN -
tcp 0 0 :::8009 :::* LISTEN -
tcp 0 0 :::8080 :::* LISTEN -
tcp 0 0 :::80 :::* LISTEN -
tcp 0 0 ::1:25 :::* LISTEN -
tcp 0 0 :::3322 :::* LISTEN -
[elkstack@ops1 bin]$ vim /etc/hosts
[elkstack@ops1 bin]$ sudo vim /etc/hosts
[elkstack@ops1 bin]$ ll
总用量 324
-rwxr-xr-x 1 elkstack elkstack 5551 7月 27 18:34 elasticsearch
-rw-rw-r-- 1 elkstack elkstack 909 7月 27 18:34 elasticsearch.bat
-rw-rw-r-- 1 elkstack elkstack 3307 7月 27 18:34 elasticsearch.in.bat
-rwxr-xr-x 1 elkstack elkstack 2814 7月 27 18:34 elasticsearch.in.sh
-rw-rw-r-- 1 elkstack elkstack 104448 7月 27 00:09 elasticsearch-service-mgr.exe
-rw-rw-r-- 1 elkstack elkstack 103936 7月 27 00:09 elasticsearch-service-x64.exe
-rw-rw-r-- 1 elkstack elkstack 80896 7月 27 00:09 elasticsearch-service-x86.exe
-rwxr-xr-x 1 elkstack elkstack 2992 7月 27 18:34 plugin
-rw-rw-r-- 1 elkstack elkstack 1303 7月 27 18:34 plugin.bat
-rw-rw-r-- 1 elkstack elkstack 6501 7月 27 18:34 service.bat
[elkstack@ops1 bin]$ ./elasticsearch
[2016-08-11 13:26:44,640][WARN ][bootstrap ] unable to install syscall filter: seccomp unavailable: CONFIG_SECCOMP not compiled into kernel, CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER are needed
[2016-08-11 13:26:45,093][INFO ][node ] [node0] version[2.3.5], pid[3580], build[90f439f/2016-07-27T10:36:52Z]
[2016-08-11 13:26:45,094][INFO ][node ] [node0] initializing ...
[2016-08-11 13:26:46,176][INFO ][plugins ] [node0] modules [reindex, lang-expression, lang-groovy], plugins [head], sites [head]
[2016-08-11 13:26:46,224][INFO ][env ] [node0] using [1] data paths, mounts [[/ (/dev/mapper/vg_ops1-lv_root)]], net usable_space [41.6gb], net total_space [49gb], spins? [possibly], types [ext4]
[2016-08-11 13:26:46,224][INFO ][env ] [node0] heap size [990.7mb], compressed ordinary object pointers [true]
[2016-08-11 13:26:46,224][WARN ][env ] [node0] max file descriptors [4096] for elasticsearch process likely too low, consider increasing to at least [65536]
[2016-08-11 13:26:49,175][INFO ][node ] [node0] initialized
[2016-08-11 13:26:49,176][INFO ][node ] [node0] starting ...
[2016-08-11 13:26:49,378][INFO ][transport ] [node0] publish_address {ops1/192.168.0.91:9300}, bound_addresses {192.168.0.91:9300}
[2016-08-11 13:26:49,393][INFO ][discovery ] [node0] 91_cluster/crn6NyS9SI61CXYSnjjtxw
[2016-08-11 13:26:52,492][INFO ][cluster.service ] [node0] new_master {node0}{crn6NyS9SI61CXYSnjjtxw}{192.168.0.91}{ops1/192.168.0.91:9300}, reason: zen-disco-join(elected_as_master, [0] joins received)
[2016-08-11 13:26:52,550][INFO ][http ] [node0] publish_address {ops1/192.168.0.91:9200}, bound_addresses {192.168.0.91:9200}
[2016-08-11 13:26:52,552][INFO ][node ] [node0] started
[2016-08-11 13:26:52,588][INFO ][gateway ] [node0] recovered [0] indices into cluster_state