magento据说很好,但是注册账号失败,最后一个字段填不到

PHPer 2021-12-14 416 0 0

本文使用环境 centos7.x elasticsearch7.6.2 JDK1.8

错误:文件权限不足 [1]: max file descriptors [4096] for elasticsearch process likely too low, increase to at least [65536]

再次启动,又出错了:

1

[1]: max file descriptors [4096]forelasticsearch process likely too low, increase to at least [65536]

我们用的是新创建的用户,而不是root,所以文件权限不足。 ...

立即注册
分享的网址网站均收集自搜索引擎以及互联网,非查问网运营,查问网并没有提供其服务,请勿利用其做侵权以及违规行为。

elasticsearch异常问题 discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured

另外可以用root用户直接执行运行,不用切用户

命令:./elasticsearch -d报错,完整代码如下。

[root@10-7-188-37 elasticsearch-7.10.1]# cd bin

[root@10-7-188-37 bin]# su es

[es@10-7-188-37 bin]$ ./elasticsearch -d

Exception in thread "main" java.lang.RuntimeException: starting java failed with [1]

output:

#

# There is insufficient memory for the Java Runtime Environment to continue.

# Native memory allocation (mmap) failed to map 1073741824 bytes for committing reserved memory.

# An error report file with more information is saved as:

# logs/hs_err_pid28830.log

error:

OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c0000000, 1073741824, 0) failed; error='Not enough space' (errno=12)

at org.elasticsearch.tools.launchers.JvmErgonomics.flagsFinal(JvmErgonomics.java:126)

at org.elasticsearch.tools.launchers.JvmErgonomics.finalJvmOptions(JvmErgonomics.java:88)

at org.elasticsearch.tools.launchers.JvmErgonomics.choose(JvmErgonomics.java:59)

at org.elasticsearch.tools.launchers.JvmOptionsParser.jvmOptions(JvmOptionsParser.java:137)

at org.elasticsearch.tools.launchers.JvmOptionsParser.main(JvmOptionsParser.java:95)

复制下载链接后,可直接在Linux环境下载

wget https://mirrors.huaweicloud.com/elasticsearch/7.10.1/elasticsearch-7.10.1-linux-x86_64.tar.gz

解压文件

tar -zxvf elasticsearch-7.10.1-linux-x86_64.tar.gz 

赋予文件夹及子文件可执行权限

chmod -R +x elasticsearch-7.10.1

创建elasticsearch启动用户:can not run elasticsearch as root

adduser es

更改文件夹(elasticsearch-7.10.1)的所属用户

chown -R es elasticsearch-7.10.1

赋予用户(es)该文件夹(elasticsearch-7.10.1)的执行权限

 chmod -R +x es elasticsearch-7.10.1

切换到config目录文件

cd elasticsearch-7.10.1/config/

编辑 elasticsearch.yml

cluster.name: elasticsearch

node.name: node-1

切换到bin目录文件

cd elasticsearch-7.10.1/bin/

切换用户(es),使用用户(es)后台启动elasticsearch

su es
./elasticsearch -d

访问链接,查看启动效果

curl http://localhost:9200

Ps:部署配置过程中需要注意以下几点:

1.赋予elasticsearch文件执行权限

2.创建elasticsearch启动用户,root用户不能直接启动

3.赋予elasticsearch文件用户执行权限

4.更换elasticsearch文件所属用户

5.修改elasticsearch/config/elasticsearch.yml文件中的cluster.name、node.name: node-1

6.su 切换刚创建的elasticsearch文件所属用户启动

7.elasticsearch默认访问端口为9200,若外部访问则必须开放9200映射端口

命令:/sbin/iptables -I INPUT -p tcp --dport 9200 -j ACCEPT,要在root用戶下...

立即注册

服务器上搭好了,拿到本地又报错 .htaccess: Invalid command '<IfVersion'

.htaccess: Invalid command '<IfVersion'

[Wed Dec 15 22:48:29.171707 2021] [core:alert] [pid 7872:tid 8796] [client 127.0.0.1:1472] D:/phpstudy/WWW/vinm/pub/.htaccess: Invalid command '<IfVersion', perhaps misspelled or defined by a module not included in the server configuration...

立即注册

更新于:2021-12-19 13:45:32
相关内容

composer update --no-autoloader

composer update 有很多选项,不知道是什么意思,待学习。

The Romantic Manifesto - abstractions

When we come to normative abstractions—to the task of defining moral principles and projecting what man ought to be—the psycho-epistemological process required is still harder.

linux Centos8邮件服务器的搭建和使用

echo "content" | mail -s "title" xxx@gmail.com vi /etc/postfix/master.cf 更改配置文件把#smtps inet n - - - - smtpd 注释去掉 保存退出,重启postfix服务,报错 [root@vultrguest ~]# sudo systemctl restart ...

webmin和postfix

听着soundscape to ardor-鹭巣诗郎 20201122

最近写东西的时候喜欢听soundscape to ardor-鹭巣诗郎,有一种深邃空明的感觉慢慢融入到身体里。http://www.kugou.com/song/1mbpy58.html?frombaidu#h...
推荐内容

如何注册Spotify,注册中遇到的问题

起因是找阿特拉斯耸耸肩3里片尾的歌曲,后面用谷歌插件 aha music找到了歌曲名字和作曲人:The Beginning Elia Cmiral,然后资料在spotify有,于是就注册,甚至通过远程服务器,在服务器上打开浏览器也...

Spotify无法注册,想了很多办法后无果于是联系客服

Spotify无法注册,想了很多办法后无果于是联系客服

客服回答中国地区现在无法注册 If you still need help, contact Spotify Support.

mysql8使用自带全文索引(带中文分词)

如果之前建立全文索引,要先删除建立的索引,然后用下面的重新建立索引,亲测有效,nice 20200408 1307 ALTER TABLE `w_note` DROP INDEX content ALTER TABLE `w_note` ADD FULLT...

MySQL如何重建索引

总结一下MySQL索引重建的方法:1: DROP INDEX + RECREATE INDEX.2: ALTER TABLE方法3: REPAIR TABLE方法,这种方法对于InnoDB存储引擎的表无效。4: OPTI...