如果以root身份运行将会出现以下问题 root@yxjay:/opt/elasticsearch-2.3.5/bin# ./elasticsearchException in thread "main" java.lang.RuntimeException: don't run elasticsearch as root.at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:93)at or…
本文依赖的环境: 已安装并配置好jdk和tomcat环境 已安装并配置好gcc.make等编译工具 1.编译安装守护程序 cd /usr/local/tomcat7/bin/ tar vzxf commons-daemon-native.tar.gz cd /usr/local/tomcat7/commons-daemon--native-src/unix/ ./configure --with-java=/usr/local/jdk1.7/make 2. 编译安装后会生成一个jsvc的文件…
Ubuntu运行Chrome出现"Google Chrome can not be run as root"的解决方法 编辑启动文件:/opt/google/chrome/google-chrome 修改最后一行:exec -a "$0" "$HERE/chrome" "$@" to -->exec -a "$0" "$HERE/chrome" "$@" --…