Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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.
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.
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.
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
Excellent worked fine.. just had a little problem while converting file by using this command dos2unix
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.