redis-server installation error on ubuntu 18.04 - django

error
I'm trying to install redis-server for celery use, but I'm getting an error.
how can i resolve it?

This has already been answered here: cannot install redis-server on ubuntu 18.04
Trying installing with IPv6 disabled.

Related

Upgrade NGNIX version on MacOS

I have the current version of ngnix of:
nginx -v
nginx version: nginx/1.15.6
now I want to upgrade it, but do not know how?
I have found these resources: https://medium.com/#soban1193/upgrading-nginx-to-the-latest-version-on-ubuntu-c0ad9116cf87 and https://www.digitalocean.com/community/questions/how-to-update-nginx-and-should-i-update-it but they seem for upgrade using ubuntu commands.
I want to know how I can make the upgrade using macos
To upgrade nginx on macOS, use Homebrew:
Update Homebrew
brew update
Upgrade nginx
brew upgrade nginx
Cleanup old artifacts
brew cleanup
Reference
You can use Homebrew to manage package on MacOS.
For nginx, you can use brew install nginx

How Should I install Django on Ubuntu 20.04 LTS

I am trying to install Djnago on ubuntu 20.04 LTS.
First of all, I used the following command to install Python:
sudo apt-get install python3
Python version is 3.8.2.
Then I used these commands to install Django,
1st step: sudo apt update
2nd step: sudo apt install python3-pip
Error is showed in 2nd step and that is,
Media change: please insert the disc labeled
'Ubuntu 20.04.1 LTS _Focal Fossa_ - Release amd64 (20200731)'
in the drive '/cdrom/' and press [Enter]
When I press Enter. It continuously showed but it doesn't solve the problem
Now, what should I do? Please, help me solving this problem.
Since Python is already installed on Ubuntu 20.04, you should try:
pip install Django==3.1.1
Here is the documentation about how to install Django on different OS. Django Documentation
sudo apt-get update
python -m pip install Django
This will download the latest version of Django for you.
By using the version name you can get specific version.
But by doing this you will get the latest stable version

Where is httpd.conf?

I want to deploy a django app on an Ubuntu machine.
I installed apache2:
sudo apt-get install apache2
Next, I have to edit httpd.conf (I'm reading this documentation) but I don't know where it is.
Where is httpd.conf?
Ubuntu and Debian
The configuration file will be in /etc/apache2/
According to the answer on another question, the file might also be named apache2.conf.
CentOS
The file will be in /etc/httpd/
Ubuntu and debian
/etc/apache2/apache2.conf
Centos and redhat
/etc/httpd/conf/httpd.conf

Cassandra - ubuntu 16.04 :: Failed to start cassandra.service: Unit cassandra.service not found

I'm using ubuntu 16.04.I was trying to install Cassandra. But I'm getting some unknown issues. Could you please help me to solve it.
I followed the Apache-Cassandra Instructions to install Cassandra 3.6
I installed python 2.7 on this machine.
When I use the command to see the status.
sudo service cassandra status
I'm getting this error
Cassandra.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
I'm pretty sure, I was not doing as root.
I installed Cassandra in ubuntu 14.04 before one year without any problem. And worked well on different projects. Now getting these issues.
If I use the following command
sudo service cassandra start
I'm getting this error.
Failed to start cassandra.service: Unit cassandra.service not found.
Is there any problem with python and Cassandra version? Please help to solve these issues. Please suggest me the best way.
Try to reinstall Cassandra via next commands:
sudo apt-get purge cassandra
then
sudo apt-get update
sudo apt-get install cassandra
And use the latest version of Cassandra - 3.9, because the previous has a problem with cqlsh if you have Python 2.7.11+.

Error while installing EPEL 5.4 on virtualized Ubuntu 14.04

I'm trying to install epel-release-5-4.noarch.rpm in Ubuntu 14.04 (on VirtualBox).
This step is required to make a software installation.
I tried the command:
sudo rpm -Uvh http :// download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
But the host download.fedora.redhat.com is unknown (at the moment).
This url seems to work:
https :// dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
I execute the command:
sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
But this is the error:
warning: /var/tmp/rpm-tmp.9Y0b8t: Header V3 DSA/SHA1 Signature, ID key 217521f6: NOKEY error: Failed dependencies: redhat-release >= 5 is needed by epel-release-5-4.noarch
I tried to find some suggestions but no one solved my problem.
Any idea will be appreciated.
Thanks.