Memcached startup script
Hello,
I am totally new to linux world. I am trying to configure memcached on centos but its throwing me two error. I was wondering if someone here could help me on this. I am following startup script from here http://www.vbseo.com/blogs/danny-bem...-memcached-44/ when I try to run this [root@host]# /etc/init.d/memcached restart it throws me this error : bad interpreter: No such file or directory i also tried sh command and then it gave this error : No such file or directory 14: /etc/rc.d/init.d/functions i just commented this line then i was keep getting : numeric argument required 22: exit: 0 error. Please let me know what I am doing wrong. I saw httpd file it had also similar code and I checked this file /etc/rc.d/init.d/functions its on same place. Any help would be much appreciated. Thanks, Moazam |
(edited)
Apologies, didnt read your post right - im not awake yet! So assuming the interpreter is set, and youre running as root, have you checked that the file exists in the place the script is looking for it? |
Quote:
2) Yes running as root |
|
Quote:
memcached file is already chmod 0755 |
Hi,
If you want to use the script on a linux box and 'wrote' it in Windows environment you'll have to use dos2unix instead of unix2dos. If you open the file with vi -b (for binary and executable files) and you see things like ^M at the end of each line, that's when you need to either delete those characters or run the dos2unix command. Kind regards, Eric |
i think you mean dos2unix? not unix2dos.
|
Quote:
i was using dos2unix /etc/init.d/memcached it was giving me an error.. i googled and found i have to first change directory to init.d and then run this command. Thanks everyone for helping me on this. :) |
glad to help.
|
You're welcome. Glad to be of assistance.
Kind regards, Eric |
All times are GMT -5. The time now is 12:55 PM. |