First, the cluster configuration error to view the logs in the log file directory nacos
Say metaphysical issue several novice often encountered (and I'm a novice! Hehe)
Start the cluster fails, the port is not a port number found nacos ./start.sh behind -p **** your configuration (cluster start port number is 8848)
For example, this
Is the default port of 8848, Okay then I congratulate you, is estimated to be half-baked online tutorial pit
Solution 1:
Switch to the directory nacos
vim bin/start.sh
First, take a look here there is no problem for the port number specified start nacos
then
Receiving portion with
He moved to here
Do not put nohup inside (that is, end of file) although I do not understand shell, but still able to understand the logic of this place determine your startup mode obviously else is behind the cluster model with the parameters
Note: This issue is also troublesome ( NO Leader appears log-RAFT IS the Available now Naming )
Within a cluster address to communicate through the network card is not the loopback address 127.0.0.1, -i made by local ip hostname
Lost here ok.
If that does not work
Modify your hostname and hosts
hostname hostname
vi /etc/hosts
Add at the end of the host name of your network ip (hostname -i out is just that)
Maximum pit! ! ! !
nacos If the cluster fails to start at start. out file appear
error='Cannot allocate memory' (errno=12)
or
error='Cannot commite memory' (errno=12)
Watch your linux2G enough memory to run three nacos
This problem is the cluster starts start.sh file is the memory configuration problems
Adjustment-Xms
-Xmx
-Xmn这三个,内存小整的跟我一样就行