centos6

nohup:ignoring input and appending output to 'nohup.out'

泪湿孤枕 提交于 2019-11-27 11:28:08
问题 I want to start my server through nohup.php but the command is not running and displays following error nohup:ignoring input and appending output to 'nohup.out' I am using ssh through putty, this is what i am doing nohup php server1.php 回答1: That's not an error - it's normal behavior. It just informs you that once started the in/output is removed from your console. To avoid the message you need to start it like nohup php server1.php </dev/null &>/dev/null & 来源: https://stackoverflow.com

CentOS 64 bit bad ELF interpreter

China☆狼群 提交于 2019-11-27 10:07:00
I have just installed CentOS 6 64bit version, I'm trying to install a 32-bit application on a 64-bit machine and got this error: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory I'm new to linux. How do I resolve this? BRPocock You're on a 64-bit system, and don't have 32-bit library support installed. To install (baseline) support for 32-bit executables (if you don't use sudo in your setup read note below) Most desktop Linux systems in the Fedora/Red Hat family: pkcon install glibc.i686 Possibly some desktop Debian/Ubuntu systems?: pkcon install ia32-libs Fedora or newer Red

Run bash script as daemon

柔情痞子 提交于 2019-11-27 06:02:17
I have a script, which runs my PHP script each X times: #!/bin/bash while true; do /usr/bin/php -f ./my-script.php echo "Waiting..." sleep 3 done How can I start it as daemon? To run it as a full daemon from a shell, you'll need to use setsid and redirect its output. You can redirect the output to a logfile, or to /dev/null to discard it. Assuming your script is called myscript.sh, use the following command: setsid myscript.sh >/dev/null 2>&1 < /dev/null & This will completely detach the process from your current shell (stdin, stdout and stderr). If you want to keep the output in a logfile,

Upgrading PHP on CentOS 6.5 (Final)

时光毁灭记忆、已成空白 提交于 2019-11-27 05:58:18
I'm trying to update my PHP (currently v:5.3.3 to the latest stable PHP build) but it's not playing ball and it's saying there is nothing to update. Any help would be useful. Keeps saying: No Packages marked for Update As Jacob mentioned, the CentOS packages repo appears to only have PHP 5.3 available at the moment. But these commands seemed to work for me... rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm yum remove php-common # Need to remove this, otherwise it conflicts yum install php56w yum install php56w-mysql yum install php56w-common yum install php56w-pdo yum install php56w

Upgrading PHP on CentOS 6.5 (Final)

淺唱寂寞╮ 提交于 2019-11-26 12:50:33
问题 I\'m trying to update my PHP (currently v:5.3.3 to the latest stable PHP build) but it\'s not playing ball and it\'s saying there is nothing to update. Any help would be useful. Keeps saying: No Packages marked for Update 回答1: As Jacob mentioned, the CentOS packages repo appears to only have PHP 5.3 available at the moment. But these commands seemed to work for me... rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm yum remove php-common # Need to remove this, otherwise it conflicts yum