sudo apt-get update -y
sudo apt install openjdk-11-jre -y
sudo apt-get install maven -y
java -version
mvn -version
mvn validate
mvn compile
mvn test
mvn package
mvn install
mvn clean package
java -jar target/spring-boot-web.jar
-
Ensure that Java Development Kit (JDK) is installed on your Linux system. Nexus requires Java to run. You can check if Java is installed by running the command
java -version
in the terminal. If Java is not installed, you can install it using the package manager of your Linux distribution. -
Visit the Sonatype website and go to the Nexus download page: https://www.sonatype.com/nexus/repository-oss-download
wget https://download.sonatype.com/nexus/3/latest-unix.tar.gz
tar -xf latest-unix.tar.gz
-
Open the extracted Nexus directory.
-
In the bin folder, you will find a script called nexus (or nexus.exe for Windows). This is the Nexus startup script.
chmod +x nexus
./nexus start
- Open a web browser and navigate to http://localhost:8081. This is the default URL for accessing Nexus.
- Kubernetes master Node problem errors solution:
Kubernetes Error Master Node in Ubuntu Server Version Vm
error execution phase wait-control-plane: couldn't initialize a Kubernetes cluster To see the stack trace of this error execute with --v=5 or higher.
-
Error Solve In follow Step By Step command:
kubeadm reset -f
iptables -F && iptables -t nat -F && iptables -t mangle -F && iptables -X
cat > /etc/docker/daemon.json <<EOF
- Select all Command:
{
"exec-opts": ["native.cgroupdriver=systemd"],
"log-driver": "json-file",
"log-opts": {
"max-size": "100m"
},
"storage-driver": "overlay2"
}
EOF
systemctl daemon-reload
systemctl restart docker
swapoff -a
systemctl start kubelet
Unable to connect to the server: dial tcp 192.168.0.101:6443: connect: no route to host
- Solving Errors follow Command:
sudo -i
swapoff -a
exit
strace -eopenat kubectl version
kubectl get pods
- Errors
the connection to the server localhost:8080 was refused - did you specify the right host or port?
- Solving command
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config