Stopping, starting, and restarting DataStax agents
Commands for stopping, starting, and restarting DataStax agents for each type of installation.
Procedure
-
Stop the DataStax agent:
- Package
installations:
sudo service datastax-agent stop
- Tarball installations:
To stop the DataStax agent, find the DataStax agent Java process ID (PID) and kill the process using its PID number.
ps -ef | grep datastax-agent
sudo kill pid
- Package
installations:
-
Start the DataStax agent:
- Package installations:
sudo service datastax-agent start
Note: The DataStax agent starts automatically. - Tarball installations:
Use the
-f
option to start the agent in the foreground.install_location/bin/datastax-agent
- Package installations:
-
Restart the DataStax agent:
- Package installations:
sudo service datastax-agent restart
- Tarball installations:
- To stop the DataStax agent, find the DataStax agent Java process ID
(PID) and kill the process using its PID
number:
ps -ef | grep datastax-agent
sudo kill pid
- Start the agent:
Use the
-f
option to start the agent in the foreground.install_location/bin/datastax-agent
- To stop the DataStax agent, find the DataStax agent Java process ID
(PID) and kill the process using its PID
number:
- Package installations: