广告位 后台主题配置管理 |
广告位 后台主题配置管理 |
今天给各位分享阿里云服务器开启端口的知识,其中也会对阿里云设置端口访问使用进行解释,如果能碰巧解决你现在面临的问题,别忘了关注本站,现在开始吧!
登录阿里云账号后,点击控制台 点击自定义视图→再点击云服务器ECS 点击实例id
1、电脑点击开始界面,点击控制面板选项。
/iknow-pic.cdn.bcebos.com/5fdf8db1cb1349545b3d9dde584e9258d1094a6c"target="_blank"title="点击查看大图"class="qnphp64d8-d3b6-1636-5db8 ikqb_img_alink"/iknow-pic.cdn.bcebos.com/5fdf8db1cb1349545b3d9dde584e9258d1094a6c?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc=""/
2、进入控制面板,选择windows防火墙。
/iknow-pic.cdn.bcebos.com/f703738da977391209ddf0dbf6198618377ae295"target="_blank"title="点击查看大图"class="qnphpd3b6-1636-5db8-1af8 ikqb_img_alink"/iknow-pic.cdn.bcebos.com/f703738da977391209ddf0dbf6198618377ae295?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc=""/
3、进入防火墙,点击高级设置。
/iknow-pic.cdn.bcebos.com/500fd9f9d72a6059240395a02634349b033bba7c"target="_blank"title="点击查看大图"class="qnphp1636-5db8-1af8-a20c ikqb_img_alink"/iknow-pic.cdn.bcebos.com/500fd9f9d72a6059240395a02634349b033bba7c?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc=""/
4、进入高级防火墙设置,点击入站规则。
/iknow-pic.cdn.bcebos.com/80cb39dbb6fd52665d5048aea518972bd4073614"target="_blank"title="点击查看大图"class="qnphp8bb0-a944-2d72-1063 ikqb_img_alink"/iknow-pic.cdn.bcebos.com/80cb39dbb6fd52665d5048aea518972bd4073614?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc=""/
5、进入入站规则,点击新建规则。
/iknow-pic.cdn.bcebos.com/faedab64034f78f050a7ee4977310a55b2191cdf"target="_blank"title="点击查看大图"class="qnphpa944-2d72-1063-8670 ikqb_img_alink"/iknow-pic.cdn.bcebos.com/faedab64034f78f050a7ee4977310a55b2191cdf?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc=""/
6、进入新建规则,点击端口,点击下一步。
/iknow-pic.cdn.bcebos.com/c995d143ad4bd113ed36c38854afa40f4afb0594"target="_blank"title="点击查看大图"class="qnphp2d72-1063-8670-7e33 ikqb_img_alink"/iknow-pic.cdn.bcebos.com/c995d143ad4bd113ed36c38854afa40f4afb0594?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc=""/
7、在特定本地端口中输入443,点击一下步。
/iknow-pic.cdn.bcebos.com/9d82d158ccbf6c81dbdb5852b23eb13532fa409f"target="_blank"title="点击查看大图"class="qnphp1063-8670-7e33-d17c ikqb_img_alink"/iknow-pic.cdn.bcebos.com/9d82d158ccbf6c81dbdb5852b23eb13532fa409f?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc=""/
8、进入操作页面,点击下一步。
/iknow-pic.cdn.bcebos.com/4d086e061d950a7bd30f397e04d162d9f2d3c956"target="_blank"title="点击查看大图"class="qnphp8670-7e33-d17c-2280 ikqb_img_alink"/iknow-pic.cdn.bcebos.com/4d086e061d950a7bd30f397e04d162d9f2d3c956?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc=""/
9、进入配置文件,点击下一步。
/iknow-pic.cdn.bcebos.com/960a304e251f95cab83ce60cc7177f3e660952ba"target="_blank"title="点击查看大图"class="qnphp7e33-d17c-2280-1094 ikqb_img_alink"/iknow-pic.cdn.bcebos.com/960a304e251f95cab83ce60cc7177f3e660952ba?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc=""/
10、最后输入名称,点击完成就可以了。
/iknow-pic.cdn.bcebos.com/6c224f4a20a44623e2bdd2d89622720e0cf3d711"target="_blank"title="点击查看大图"class="qnphpd17c-2280-1094-bb38 ikqb_img_alink"/iknow-pic.cdn.bcebos.com/6c224f4a20a44623e2bdd2d89622720e0cf3d711?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc=""/
可以在服务器提供商的安全设置中开启,这里以阿里云服务器为例。
1、打开百度搜索“阿里云”,在展开的搜索结果中找到阿里云官网并点击进入:
2、打开自己服务器的设置中心,点击左侧导航栏上的“防火墙”按钮进入防火墙设置界面:
3、打开防火墙设置后点击界面右上角的“添加规则”按钮:
4、在弹出的窗口中将应用类型选择为“HTTPS”,然后将端口范围选择为“443”,点击“确定”按钮保存即可开启:
5、这时就可以在防火墙中看到https的443端口已经被开启了:
1、拉取docker elasticsearch 镜像
[root@hadoop-keda /]# docker pull elasticsearch:7.4.2
7.4.2: Pulling from library/elasticsearch
2、先配置宿主机的 参数,否则无法启动,会报错:
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
[root@study-01 ~]# vim /etc/sysctl.conf
vm.max_map_count=655360
[root@study-01 ~]# sysctl -p
3、先启动简洁版的容器
sudo docker run -id \
--net docker-hadoop-net \
--ip 172.170.0.15 \
--restart=always \
--hostname=hadoop_elasticsearch \
--name=hadoop-elasticsearch \
-p 19200:9200 \
-p 19300:9300 \
-v /etc/localtime:/etc/localtime \
-e ES_JAVA_OPTS="-Xms2g -Xmx2g" \
-e "discovery.type=single-node" \
-e TZ='Asia/Shanghai' \
-e LANG="en_US.UTF-8" \
elasticsearch:7.4.2
4、copy容器中的文件,到宿主机上
[root@hadoop-keda software]# docker cp 97d21381af5a4e49e:/usr/share/elasticsearch/config/ /usr/docker/software/elasticsearch/
[root@hadoop-keda software]# docker cp 97d21381af5a4e49e:/usr/share/elasticsearch/data/ /usr/docker/software/elasticsearch/
[root@hadoop-keda software]# docker cp 97d21381af5a4e49e:/usr/share/elasticsearch/logs/ /usr/docker/software/elasticsearch/
[root@hadoop-keda software]# docker cp 97d21381af5a4e49e:/usr/share/elasticsearch/plugins/ /usr/docker/software/elasticsearch/
5、启动 elasticsearch 容器
sudo docker run -tid \
--net docker-hadoop-net \
--ip 172.170.0.15 \
--restart=always \
--hostname=hadoop_elasticsearch \
--name=hadoop-elasticsearch \
-p 19200:9200 \
-p 19300:9300 \
-v /usr/docker/software/elasticsearch/config/:/usr/share/elasticsearch/config/ \
-v /usr/docker/software/elasticsearch/data/:/usr/share/elasticsearch/data/ \
-v /usr/docker/software/elasticsearch/logs/:/usr/share/elasticsearch/logs/ \
-v /usr/docker/software/elasticsearch/plugins/:/usr/share/elasticsearch/plugins/ \
-v /etc/localtime:/etc/localtime \
-e ES_JAVA_OPTS="-Xms2g -Xmx2g" \
-e "discovery.type=single-node" \
-e TZ='Asia/Shanghai' \
-e LANG="en_US.UTF-8" \
elasticsearch:7.4.2
注:
-e "discovery.type=single-node" 表示 单节点启动。
如果yml文件中,配置是集群环境,需要把这个去掉
6、开放宿主机的端口,(阿里云服务器,需要通过控制台来开启19200端口)
7、访问测试
8、安装 IK 分词器(进入docker容器安装插件)
[root@hadoop-keda config]# docker exec -it 9e4e12672334 bash
[root@hadoop_elasticsearch elasticsearch]# ls
bin config data jdk lib LICENSE.txt logs modules NOTICE.txt plugins README.textile
[root@hadoop_elasticsearch elasticsearch]# cd bin/
[root@hadoop_elasticsearch bin]# ls
elasticsearch elasticsearch-cli elasticsearch-enve elasticsearch-node elasticsearch-setup-passwords elasticsearch-sql-cli-7.4.2.jar x-pack-env
elasticsearch-certgen elasticsearch-croneval elasticsearch-keystore elasticsearch-plugin elasticsearch-shard elasticsearch-syskeygen x-pack-security-env
elasticsearch-certutil elasticsearch-env elasticsearch-migrate elasticsearch-saml-metadata elasticsearch-sql-cli elasticsearch-users x-pack-watcher-env
[root@hadoop_elasticsearch bin]# elasticsearch-plugin install
- Downloading
[=================================================] 100%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: plugin requires additional permissions @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* java.net.SocketPermission * connect,resolve
See
for descriptions of what these permissions allow and the associated risks.
Continue with installation? [y/N]y
- Installed analysis-ik
9、安装mobz/elasticsearch-head 容器并连接到 elasticsearch
[root@hadoop-keda ~]# sudo docker run -dit \
--net docker-hadoop-net \
--ip 172.170.0.18 \
--restart=always \
--hostname=hadoop_elasticsearch_head \
--name=hadoop-elasticsearch-head \
-p 19100:9100 \
-v /etc/localtime:/etc/localtime \
-e TZ='Asia/Shanghai' \
-e LANG="en_US.UTF-8" \
mobz/elasticsearch-head:5
10、开放宿主机的端口,(阿里云服务器,需要通过控制台来开启19100端口)
关于阿里云服务器开启端口和阿里云设置端口访问使用的介绍到此就结束了,不知道你从中找到你需要的信息了吗 ?如果你还想了解更多这方面的信息,记得收藏关注本站。
广告位 后台主题配置管理 |
广告位 后台主题配置管理 |