I installed an older version of Redis on a CentOS server. I tried to remove that old version and update it to latest version, but it seems that the redis service is gone and the new version installation doesn't reproduce it. Is there any way I can uninstall the Redis completely and make a fresh install? Otherwise, is there any way I can reinstall Redis service? When I check service list, I see redis in the list but when I execute service Redis restart, it says "unrecognized service".
Do you want to remove redis old package you can use yum remove command as below.
yum remove redis
then check it still available as below
rpm -qi redis
and also check files
rpm -ql redis
if its there you can remove as below.
rpm -e redis
(or you can mention package full name with versions)
then you can install new version which you want.
wget -r --no-parent -A 'epel-release-*.rpm' http://dl.fedoraproject.org/pub/epel/7/x86_64/e/
rpm -Uvh dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-*.rpm
then run
yum install redis
or you can download rpm and install it as below
rpm -ivh redis-"version".rpm
but better to use yum because its going with all dependences.
You might try init 1 then init 5 to take the system to single user then back to gui thus restarting all services in case your Redis is relying upon another service. Also do this as SU.
Related
The R16B version isn't working with the latest version of RabbitMQ I'm trying to install on my VM (needs 23.3 or later) and I already tried to install 25.0.3 but it won't install because it's conflicting with the R16B files that exist.
file /usr/bin/typer from install of esl-erlang-25.0.3-1.x86_64 conflicts with file from package erlang-typer-R16B-03.18.el7.x86_64
That's the error I get. I tried rm -r erlang*.rpm and it asks for a reboot after completing but still gives the same errors.
With this command you just delete the rpm. What you want is to deinstall the rpm. You could use
dnf uninstall PACKAGENAME
where, in your case, PACKAGENAME whould be something like erlang-typer-R16B-03.18.el7.
Can I ask that are there any scripts in Linux that similar to reset-server-realms.command on Mac that can delete all realms on server. Actually I need to reset the server and clean it before use the application officially. I try to uninstall regarding to the guides on Realm website but somehow the old data still comes up.
Thanks
Uninstalling the package doesn't remove any data. This is done on purpose, so that the upgrade process of RPMs and debs works properly.
We don't provide a script, but the easiest way to wipe everything is simply to run:
sudo rm -rf /var/lib/realm
# CentOS
sudo yum remove realm-object-server-de
sudo yum install realm-object-server-de
# Ubuntu
sudo apt-get install --reinstall realm-object-server-de
Please note that this will preserve your configuration, still. The configuration is stored in /etc/realm.
I'm having trouble installing Redis, this whole week I looked for a solution. I'm needing to install NodeBB running on a CentOS 6 server (with WHM/Cpanel).
Follow the steps http://nodebb-francais.readthedocs.org/projects/nodebb/en/latest/installing/os/centos.html
When I run a test (https://www.digitalocean.com/community/tutorials/how-to-configure-a-redis-cluster-on-ubuntu-14-04) with the command redis-benchmark -q -n 1000 -c 10 -P 5, the system returned the error Writing to socket: Connection refused.
In attempts I installed multiple times Redis, don't know if this may have affected the functioning now. Does anyone have any idea what could be the problem? Apparently Redis does not run in fact, and it is difficult to find specific content on the subject.
You need to install the redis package. Your guide is for Ubuntu where it is available in the base repository, it isn't in CentOs. You have to install it via the epel repository.
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm; yum -y --enablerepo=remi,remi-test install redis
chkconfig --add redis
service redis restart
You can also install it from source:
wget http://download.redis.io/releases/redis-2.8.3.tar.gz
tar xzvf redis-2.8.3.tar.gz
cd redis-2.8.3
make
make install
chkconfig --add redis
service redis restart
When I tried install deluge on my CentOS 7.1 I was facing dependecy problems due to some el6 which are not meant for CentOS 7.1. So, I found this page:
https://gist.github.com/dasgoll/111f6f3364e2ab97bc08
His instructions:
Centos 7.1
yum -y install wget wget hxxp://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
rpm -ivh nux-dextop-release-0-5.el7.nux.noarch.rpm
yum -y install deluge-web
systemctl start deluge-web
systemctl stop firewalld
browse http://192.168.3.101:8112
check it
yum install deluge-console
And my question is: Why he installed "nux-dextop-release-0-5.el7.nux.noarch.rpm" from li.nux.ro (if I'm not wrong it's a repository, correct me if I'm)? Because I had this dependency problem earlier when I tried installing deluge. But when I used his instructions it resolved all the dependencies automatically for me. So does this rpm file he installed on the first place was for resolving dependencies? If not then how can one work around with dependencies while installing a piece of software/application. Than You in advance.
P.S. I asked the same question in comments there too. But I'm uncertain of receiving reply there (no offence for the guy/girl - dasgoll).
Third party package repos will often use a *-release package to contain both a yum repo definition and a rpm signing public key so that end users can install packages directly from the repo using yum instead of having to find and then download them one by one.
I have already installed cassandra in ubuntu using with wiki
Problem is I have no control over which version to install and upgrade to in feature.
I am want to be able to install specific version not just latest, because i have a machine running 0.6.2 now i want a another node and i want to install 0.6.2.
How can i install debian package for specific version instead of latest one?
for installing a specific version of cassandra you can do something like this:
in this case i want to install cassandra 1.2.8
sudo apt-get clean
sudo apt-get update
sudo apt-get install cassandra=1.2.8
The best way to do something like this, that I have found so far is pinning. This is a little inconvenient at the moment because you have to manually create the pinning preferences (and change them if necessary). Also, the pinning will not work with aptitude in case you use this.
Another example is the pinning I have done for php here. However, you have to make sure that whatever version you want to have is available in the repos/ppas that you have configured in your sources.list (sources.list.d).