After adding a user to the kiftd private cloud disk, the user cannot log in normally and the user configuration information is not synchronized (practical operation)

vim account.properties

After entering the file to configure user information, the login prompt fails, the account does not exist or is not set

After searching, it sometimes happens that the user configuration information cannot be synchronized. At this time, the easiest way is to kill the process and restart it.

Step 1: Find its java process

#ps -ef |grep java

You can see that its pid is 28035

Step 2: Kill 28035 process


#kill -9 28035

Step 3: Start the service

# cd /data/
[root@6--252-FTP data]# ./startkiftd.sh

Check again whether the process has started

#ps -ef |grep java

PS: Attach the full operation code

[root@6--252-FTP ]# cd /data/
[root@6--252-FTP data]# ls
centos7.6_jdk1.8_1.1.tar  docker-compose.yaml  filedata  filedata2  filedatabak  jdk-8u211-linux-x64.rpm  kiftd-1.0.35-release  nohup.out  startkiftd.sh
[root@6--252-FTP data]# ps -ef |grep java
root      1298 24927  0 09:16 pts/0    00:00:00 grep --color=auto java
root     28035     1  1  2022 ?        1-00:56:44 java -jar /data/kiftd-1.0.35-release/kiftd-1.0.35-RELEASE.jar -start
[root@6--252-FTP data]# kill -9 28035
[root@6--252-FTP data]# ./startkiftd.sh 
[root@6--252-FTP data]# nohup: 重定向标准错误到标准输出

[root@6--252-FTP data]# ps -ef |grep java
root      1450     1 84 09:19 pts/0    00:01:04 java -jar /data/kiftd-1.0.35-release/kiftd-1.0.35-RELEASE.jar -start
root      1566 24927  0 09:20 pts/0    00:00:00 grep --color=auto java
[root@6--252-FTP data]# cat startkiftd.sh 

#!/bin/bash
cd /data
nohup java -jar /data/kiftd-1.0.35-release/kiftd-1.0.35-RELEASE.jar -start >>/data/nohup.out &

Guess you like

Origin blog.csdn.net/weixin_42517271/article/details/128827418