Trying to create a basic Spring Cloud application, based on the book Mastering Spring Boot 2.0, chaper 4, I’ve got an error message:
You need to configure a uri for the git repository
I was thinking the error is from the property
spring.cloud.config.server.git, but actually the error came from the
native profile that needs to be enabled in order to use the config directory as a repository for config files.
in application.properties need to have the following lines: (change the path to your path, if you are using Linux or Mac you need to delete one / after file)
If you want to test your internet connection, but you only have a terminal (via ssh) you can use the following commands
sudo apt-get install speedtest-cli
If you want to see only the servers from Romania, for example:
speedtest-cli --list | grep Romania
To use a certain server use:
speedtest-cli --server [server id]
where server id is a number from the list of servers
Terminal enter the following commands:
sudo dscacheutil -flushcache
sudo killall -HUP mDNSResponder
When I’m trying to connect to my Linux box from macOS Terminal I got the following error:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Open a new Terminal on macOS and edit the file ~/.bash_profile
Add the following lines:
sudo apt-get install ssh
this will install openssh server
if you need to change different options, such as no root login, edit the configuration file:
sudo nano /etc/ssh/sshd_config