Linux Tips | bash: chkconfig: command not found

It’s happened when i tried to make mysqld service automatically start whenever the server boot. I login to my remote server as user via SSH, then i type “su”, it was on my centos 5. After i type “chkconfig –levels 235 mysqld on” i got this message “bash: chkconfig: command not found” Well, just wondering, then i tried to have it a check.

I run a couple of commands to see if I have it installed.

# rpm -qa |grep chkconfig

chkconfig-1.3.11.1-1

# whereis chkconfig

chkconfig: /sbin/chkconfig /usr/share/man/man8/chkconfig.8.gz

Then i remembered, i login as regular user, and type “su” not “su -” , type su – to use full root environment path or type /sbin/chkconfig if you type su without the “-”. That should work for you. Good luck.

Incoming search terms for the article:

Related posts:

  1. Internal Server Error on VPS
  2. Installing Apache-php-mysql + Webmin on Centos 5
  3. Installing kloxo on Centos 5
  4. how to download and upload between server through ftp command

Leave a Reply