I could run the server on port 8000 but when i try to use 80 with python manage.py runserver myip:80 I get: You don’t have permission to access that port. If I use sudo python manage.py runserver myip:80 I get: If I write python in the console I get version 3.5.5 and my env is activated. EDIT: Using sudo python3
Tag: centos
How to sort all the files with a particular extension inside a directory in Cent OS 7 according to modification time?
What command should I use to sort all the files in a project directory according to the date of modification? Tried ls -t but it does not find the file and used find to find all the files of the specified type, but could not sort them. Answer You can use this to find all the files of the type
Git clone with authentication over HTTP protocol
I have a centos 7 server with a git repo shared over smart http, when I make “git push” the authentication works but when I make “git clone” not works. I want than Git and Apache ask me user and password to clone the repos. /var/www/git -> Is my repo dir /var/www/html -> Is the web sites dir My site.conf
How to run commands on CentOS reboot
I want to run the following commands one after the other upon reboot of the server after I do shutdown -r now but not sure how to do it: getenforce setenforce 0 systemctl start httpd.service I’m running CentOS 7.x Answer Technically you can crontab it and add the line and put the 3 commands in the myscript.sh with the proper
Permission to access another remote server Linux, Ubuntu [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question
CentOS inserting new line of text after another using sed not working
I’m trying to insert a line of text which is; On the next line after the words; in my /etc/nginx/nginx.conf using the following command But each time i run it, it just returns Im not very good with this sort of stuff so i was hoping someone could help me out. Cheers, Answer Remove the second single-quote. It is superfluous:
How to delete lines that match elements from another file
I am in the process of learning Perl and I am trying to figure out how to do this task. I have a folder with a bunch of text files and I have a file ions_solvents_cofactors that contains bunch of three letters list. I wrote a script that opens and reads each file in a folder and should delete those
RPM require kernel-devel package of currently installed kernel
I have written an RPM spec that has a requirement for the kernel-devel package. However, that is satisfied by the installation of any kernel-devel package. How do I specify that the RPM requires the kernel-devel package of the currently running kernel version. For example, our customer could be running 3.10.0-514, however the latest is 3.10.0-693. If you execute “yum install
How to install konsole on Cent OS 7?
I have Cent OS 7. Since konsole tool is in kde package, I’ve installed it: But still konsole isn’t installed. So, how can I install it? Answer You can just install the konsole package. yum provides konsole Will return: konsole-4.10.5-4.el7.x86_64 : KDE Terminal emulator So you just have to install it with yum install konsole Kind regards
Moving files with a specific modification date; “find | xargs ls | grep | -exec” fails w/ “-exec: command not found”
Iam using centos 7 If I want to find files that have specific name and specific date then moving these files to another folder iam issuing the command with the following error Answer the -exec as you wrote it is quite meaningless, moreover it seems you are mixing find syntax with shell oe (-exec as you wrote it should be