Installing beanstalkd on a shared hosting account

2019-07-23 13:21发布

问题:

I am trying to install beanstalkd (http://kr.github.io/beanstalkd/download.html) via the Linux Terminal on a shared hosting account at Godaddy.

The previous link gives commands that should install beanstalkd on the server. I use SSH (with PuTTy) to access the Linux Terminal. I have practically tried all the commands in the previous link and am consistently obtaining errors like:

sudo apt-get install beanstalkd

error message: -bash: sudo: command not found

brew install beanstalkd

error message: -bash: brew: command not found

su -c 'rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm'
su -c 'yum install beanstalkd --enablerepo=epel-testing'

error message: -bash: su: command not found

yaourt -S beanstalkd

error message: -bash: yaourt: command not found

I am not even sure what bash is exactly and if it is causing the problem, or if its because I'm using an SSH connection, or if it's really because the commands don't actually exist on the server (which would be strange because when I do man sudo or man su I do in fact get the complete manual of both commands in the terminal).

QUESTION: Why am I unable to run the previous commands to install beanstalkd on the linux server? Does it have to do with me using PuTTy (ssh connection)? What could I possibly do to get beanstalkd installed? Could it be because its shared hosting with Godaddy, and I might not have full power over the linux terminal?

SERVER INFO: When running cat /proc/version I obtain my linux distribution: Red Hat 4.4.7-16. I have a shared hosting account with Godaddy with a linux server hosting my site.

回答1:

You have a RedHat distro, and they use rpm+yum for package management.

I see from yum search beanstalkd on my box that I can find it, but only on EPEL.

However, you have a really old version of RedHat, so can't just install the epel-release rpm, also, there doesn't seem to be a built version for RedHat 4.

If you had at least RedHat 5 you could do:

$ sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-5.noarch.rpm
$ sudo yum install beanstalkd


回答2:

You may in fact have a restricted instance of batch...

You must go to your provider's interface and do the necessary to have root access. Have you tried something like explained here?

https://uk.godaddy.com/help/enable-adminroot-access-managed-or-fully-managed-12270

If it doesn't work for you, you may also try asking https://serverfault.com/ that seems more relevant for your case.