HDFS是由java语言开发的,应用也很广泛。官方中文文档
- rpm -qa | grep java //查看安装的java包
- 删除安装的jdk包
rpm -e --nodeps java-1.8.0-openjdk-headless-1.8.0.252.b09-2.el7_8.x86_64
pm -e --nodeps java-1.8.0-openjdk-1.8.0.252.b09-2.el7_8.x86_64
注意: 我直接用 $HADOOP_HOME/sbin/start-dfs.sh没有启动所有是因为没有弄公私钥。所以本地不能ssh,处理可以看官方文档:描述如下
If you cannot ssh to localhost without a passphrase, execute the following commands:
$ ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
$ chmod 0600 ~/.ssh/authorized_keys
https://blog.csdn.net/nenguou04/article/details/88770031
[Unit] Description=nginx - high performance web server Documentation=http://nginx.org/en/docs/ After=network.target remote-fs.target nss-lookup.target
[Service] Type=forking PIDFile=/your nginx pid file path/nginx.pid ExecStartPre=/usr/local/nginx/sbin/nginx -t -c /usr/local/nginx/conf/nginx.conf ExecStart=/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf ExecReload=/bin/kill -s HUP $MAINPID ExecStop=/bin/kill -s QUIT $MAINPID PrivateTmp=true
[Install] WantedBy=multi-user.target