Questions tagged as 'linux'

3
answers

Shell: download and unzip on a line

I tried to use wget with tar as follows wget -qO- [url] | tar xvf but I can not get the expected effect. Are there other ways to do this?     
asked by 29.06.2017 / 15:37
3
answers

Add line at the end of the file with the command sed

I'm setting up a virtual machine to install JDK 7, Tomcat 7, JBoss EAP 7 and Postgresql. Follow the project on GitHub for those who are interested: cresol-enviroment-vagrant . I'm in the part where you need to add JAVA_HOME to the fil...
asked by 14.12.2016 / 19:20
1
answer

How to increase the connection limit of MongoDB?

Good morning. I have an Ubuntu 16.04 LTS server, hosted on Linode. Yesterday I spent all night reading articles and testing settings to increase the connection capacity of MongoDB, but nothing worked. At the moment the mongo is with 819 availabl...
asked by 13.01.2017 / 12:32
1
answer

MySQL - installation problems with linux

Problems with installing MySQL on a linux.  Every time I put the command in the terminal: sudo apt-get install mysql-server I get this message back: Reading package lists... Done Building dependency tree Reading state information.....
asked by 23.04.2017 / 18:17
2
answers

Start php script in background

I have the submit.php file and need it to run in the background while my application is being used by users. The submit.php file instantiates a pool of threads that make specific submissions from my system to the world. I believe that OS (Linux...
asked by 10.03.2016 / 15:43
2
answers

Replace files with thirst

Hello, I have a problem that I need to solve. I have a file that should be inserted exactly one column from another file, I am trying it as follows: cat $1 | cut -d ',' -f2 | tr "/" "-" | awk -F "-" '{print $2"-"$1"-"$3}' > temp.txt c...
asked by 02.02.2017 / 14:54
1
answer

Apply permissions after running the rsync command

I am synchronizing the files on my local machine with the server as follows:    rsync -avz -e 'ssh' --exclude = temporary ~ / Projects / test / * [email protected]: / var / www / But for the application to work, I have to go to the server and...
asked by 18.06.2015 / 14:24
2
answers

Permission of files in Linux

Hello, my question is not exactly about programming issues, but about Linux and its file access permissions. I recently had to change the permissions of two system files on directories that typically provide read-only (seemingly) access to th...
asked by 23.02.2016 / 22:32
1
answer

Internal Server Error with .htaccess file Linux mint

I'm getting an HTTP 500 error Internal Server Error on linux mint, Apache server.    Server version: Apache / 2.4.7 (Ubuntu) / Server built: Apr 3 2014 12:20:28 .htaccess file RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-f Rewri...
asked by 15.07.2014 / 04:52
2
answers

Bind server configuration error

I followed this tutorial to install a dns server on my local network: link My idea is to access intranet.empresa in the pcs of the network and fall in the ip 10.0.0.220 that is a web server. I did all the procedures in the tutorial, but when...
asked by 24.07.2014 / 14:29