How Do I Test Sticky Sessions Using Linux Curl Commands?
- Prepare required resources.
- Start the HTTP service of the two backend servers.
Log in to a backend server and create a file named 1.file in the current directory to mark this server.
Run the following command in the current directory to start the HTTP service:
nohup python –m SimpleHTTPServer 80 &
Run the following command to check whether the HTTP service is normal:
curl http://127.0.0.1:80

Log in to the other backend server and create a file named 2.file in the current directory.
Run the following command in the current directory to start the HTTP service:
nohup python –m SimpleHTTPServer 80 &
Run the following command to check whether the HTTP service is normal:
curl http://127.0.0.1:80



Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.