centos6

Have 5 scripts running at any given time

爷,独闯天下 提交于 2019-11-29 08:33:21
I have a bash script (running under CentOS 6.4) that launches 90 different PHP scripts, ie. #!/bin/bash php path1/some_job_1.php& php path2/some_job_2.php& php path3/some_job_3.php& php path4/some_job_4.php& php path5/some_job_5.php php path6/some_job_6.php& php path7/some_job_7.php& php path8/some_job_8.php& php path9/some_job_9.php& php path10/some_job_10.php ... exit 0 In order to avoid overloading my server, I use the ampersand & , it works, but my goal is to always have 5 scripts running at the same time Is there a way to achieve this? This question is popped several times, but I could

yum install php-mysql unable to install Centos

怎甘沉沦 提交于 2019-11-29 04:49:13
I am having difficulty installing php-mysql, I do the following: yum -y install php-mysql but get the following: Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: centos.escapemg.com * extras: mirror.chpc.utah.edu * updates: mirrors.xmission.com Setting up Install Process No package php-mysql available. Error: Nothing to do I did a yum repolist disabled and enabled yum-config-manager --enable C6.1-base but still keep getting the same No package php-mysql available. Thanks in advance for your help I figured it out, it appeared that mysql in /etc/yum.conf

How do I know which linux user Wordpress uses for plugin installation

梦想与她 提交于 2019-11-29 00:59:08
问题 I'm trying to setup Wordpress to be able to install plugins via SFTP (SSH) on a Centos 6 VPS. I've been able to modify wp-config so it uses the right credentials with user as my SFTP user. Now I have a permission related problem, as if I do a chmod 777 on my wp-content folder I'm able to install, but with the normal permissions it can't create folders. I'm using Nginx and all my wp-content files and folders are owned by user and I've tried setting the group to nginx but it doesn't work. I

How to install python27-devel on Centos 6.5

这一生的挚爱 提交于 2019-11-28 23:13:41
I have installed python 2.7.6 from source, but can't find how to install python-devel for python 2.7 yum install python27-devel doesn't work. How to install it? Sharif Mamun Thanks for your feedback. First of all, if you try to run yum install python27-devel , then you should get the message like this: No package python27-devel available Then I followed this link , yum search python | grep -i devel This will show you that you have python-devel.x86_64 package available if your OS is a 64 bit OS. If I am correct, then the following command should work fine as shown in the accepted answer: yum

VirtualBox下Centos6 配置eth0 提示Device does not see...

荒凉一梦 提交于 2019-11-28 20:33:15
故障现象 重启网络: service network restart 得到以下提示信息: Shutting down loopback insterface: [ OK ] Bringing up loopback insterface: [ OK ] Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization. [ FAILED ] 解决问题的过程 运行ifconfig命令查看网卡设备: ifconfig -a 我的到了以下信息: 只出现了eth1而没有出现eth0, 然后通过查看虚拟机的网卡配置,我们可以得到网卡的mac地址: 而后通过查看 /etc/sysconfig/network-scripts/ 文件夹下的网卡配置: ll /etc/sysconfig/network-scripts/ | grep "ifcfg-" 我发现可以能得到ifcfg-eth0的信息: 尝试把ifcfg-eth0重命名成ifcfg-eth1,并且把文件里的 DEVICE 参数值从 eth0 改成 eth1 ,重启网络。至此,问题搞定。 反思和总结 Centos网络配置文件 RedHat系列的linux所有有关网络的配置文件,都放在了 /etc/sysconfig

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

落爺英雄遲暮 提交于 2019-11-28 19:06:35
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 lpaseen 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/questions/24646320/nohupignoring-input-and-appending-output-to-nohup-out

SSHD Gives error could not open Authorized Keys, although permissions seem correct

三世轮回 提交于 2019-11-28 16:18:02
问题 I'm unable to login to SSH because of the following error in /var/log/secure (according to the debug logs): Dec 19 18:01:05 hostname sshd[25119]: debug1: trying public key file /root/.ssh/authorized_keys Dec 19 18:01:05 hostname sshd[25119]: debug1: Could not open authorized keys '/root/.ssh/authorized_keys': Permission denied I have the following permissions set on root chmod 700 ~/.ssh chmod 600 ~/.ssh/authorized_keys chmod go-wrx ~ ls -lah gives the following output for those directories:

Install Marklogic centos virtualbox vm

房东的猫 提交于 2019-11-28 06:00:37
问题 I recently set up a CentOS 6.4 basic LAMP server (no GUI) in a pre-built Virtualbox image, and then followed the installation guide/steps for MarkLogic. When I attempt install with rpm -i /tmp/MarkLogic-8.0-1.x86_64.rpm , MarkLogic states that it cannot find libc.so.6, however when I run the command whereis libc.so.6 , the shell responds with /lib64/libc.so.6 I would make a symbolic link I suppose, but I'm not sure where MarkLogic is expecting that file to be. Does anyone have experience

What are the real rules for linux usernames on CentOS 6 and RHEL 6?

白昼怎懂夜的黑 提交于 2019-11-27 18:31:09
I'm writing some web UI pages that can be used to create Linux user accounts. This web UI will be used on CentOS 6 (which is derived from RHEL 6). I'm finding inconsistent and incomplete information about what constitutes a valid Linux user name. I went to the source, examining a Linux shadow-utils source package but I did not ensure that the version I was looking at is in fact the same as that which is part of CentOS 6. Below is the code fragment I currently use, which includes copy/paste of the comments from the shadow-utils package version 4.1.4.3, plus some of my own notes, and a Java

MySQL Daemon Failed to Start - centos 6

久未见 提交于 2019-11-27 12:20:17
问题 EDIT: Look at the checkmarked answer comments to get your issue solved. Whenever I try to start the SQLD service I get MySQL Daemon Failed to Start. I infact tried to "start" the service by doing the following: service mysqld start Also When I type: mysql I get: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) I know that there should be a mysql.sock file in that directory, so I create one. But the file just auto removes its self and I