Posts

Showing posts from January, 2018

spring notes

1.)  As of Spring Framework 4.3, an @Autowired annotation on such a constructor is no longer necessary if the target bean only defines one constructor to begin with. However, if several constructors are available, at least one must be annotated to teach the container which one to use.

unable to start docker daemon

I stopped the docker daemon and tried to start it again but while doing so , I got below errors:- Redirecting to /bin/systemctl start docker.service Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details. Solution:-  echo "export DOCKER_HOST='tcp://0.0.0.0:2375'" >> ~/.bashrc $ source ~/.bashrc

making shell script executable

sudo chmod +x sample.sh else, it gives error permission denied -bash: ./sample.sh: Permission denied

bad interpreter: No such file or directory

I got below error while running shell script . -bash: ./sample.sh: /bin/bash^M: bad interpreter: No such file or directory The Problem ist you edit with Dos! Solution:- :set ff=unix :wq