Configure the LCE Web Query Client
Note: All shell commands need to be executed by a user with root privileges.
To configure the Web Query Client, you can execute the set-server-ip.sh script and include the LCE Server IP address and port number as arguments, or execute the script and, when prompted, enter the IP address and port number individually.
To execute the script using arguments:
-
Type
/opt/lce_webquery/set-server-ip.sh <IP> <Port>
, where <IP> is the IP address of an LCE Server and <Port> is the port number assigned to the server. By default, the port number is 31300.The LCE Server IP address and port number are updated, and the LCE Web Query Client daemon is restarted.
Example:
# /opt/lce_webquery/set-server-ip.sh 192.168.22.11 31300
Updating LCE Server IP from 192.0.2.66 to 192.0.2...
Updating LCE Server Port from 31300 to 31300...
Done
Stopping LCE Webquery daemon [ OK ]
Starting LCE Webquery daemon [ OK ]
To execute the script without arguments:
-
Type
/opt/lce_webquery/set-server-ip.sh
You are prompted to enter the LCE Server IP address or hostname.
-
Type the IP address or hostname of LCE LCE server.
You are prompted to enter the LCE server port.
-
Type the port number assigned to the server for LCE client communication. By default, the port number is 31300.
The LCE Server IP address and port number are updated, and the LCE Web Query Client daemon is restarted.
Example:
# /opt/lce_webquery/set-server-ip.sh
Enter the new desired LCE server IP or hostname.
>>
192.168.22.11
Enter the new desired LCE server port [31300].
>>
31300
Updating LCE Server IP from 203.0.113.1 to 192.168.22.11...
Updating LCE Server Port from 31300 to 31300...
Done
Stopping LCE Webquery daemon [ OK ]
Starting LCE Webquery daemon [ OK ]