centos7

Job for mysqld.service failed in Centos 7

只愿长相守 提交于 2019-12-06 20:16:08
问题 OS :Centos 7 Linux 3.10.0-229.el7.x86_64 MySQL : mysql57-community-release-el7-7.noarch.rpm I installed MySQL server through yum . When I run systemctl start mysqld I get the following error Job for mysqld.service failed. See 'systemctl status mysqld.service' and 'journalctl -xn' for details. systemctl status mysqld.service MySQL Server Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled) Active: failed (Result: start-limit) since Sun 2015-12-06 03:14:54 GMT; 4min 7s ago Process:

User input is not promted in CentOS7 using systemctl or service command

走远了吗. 提交于 2019-12-06 17:24:48
Am trying to stop the system service using systemctl or service command. The command as follows systemctl start service_name or service service_name start In that stop method am asking user to enter password which is not display on console(Suspecting ran in background). Stop method as follows stop() { read -s -p "Please provide password to stop the service" passwd } The same ran in CentOS 6 using service command, its displayed on console and entered the input. Can anyone please suggest me that am I missed something here to prompt or how we can prompt the user input using systemctl. Honey

Inconsistent systemd startup of freeswitch

谁说我不能喝 提交于 2019-12-06 15:31:38
I have two problems running freeswitch from systemd : EDIT 2 - I have moved the slow start up question to here ( Freeswitch pauses on check_ip at boot on centos 7.1 ) as although they may be related it's probably good as a standalone. EDIT - I have noticed something else. Look at these next lines captured from the terminal output when running it from there. The gap is 4 minutes but it has been around 10 minutes before. I noticed it because I was trying to find out why port 8021 was taking several minutes to accept the fs_cli connection. Why does this happen? Never happened to me before and I

How to setup local syslog-ng in docker container of CentOS 7?

北城以北 提交于 2019-12-06 14:32:12
问题 I want to isolate a testing environment in docker, I did that on CentOS 6 How to let syslog workable in docker? In CentOS 7, the syslog-ng's configuration is different, when I run /usr/sbin/syslog-ng -F -p /var/run/syslogd.pid It appears the following error message, but there is no proc/kmsg in config files. syslog-ng: Error setting capabilities, capability management disabled; error='Operation not permitted' Error opening file for reading; filename='/proc/kmsg', error='Operation not

Why does `git pull` fail on my webserver?

瘦欲@ 提交于 2019-12-06 10:40:54
I use git to pull changes os a site's code base. The changes inside files and deletion of files works, however, when I add new files or directories (not empty ones) to the repo, it wont get pulled locally to the webserver, when pulling no error message is displayed but when checking for that file, it is not there. Online at the bitbucket repo it is shown. Tried to delete the local git repo and clone it again, this way I get all the files from origin, but the problem persist when doing a pull for newly added file. It shows as if its pulled: ... 18bb8ac..c9c1e40 master -> origin/master Updating

Cannot install phpMyAdmin Error: php71w-common conflicts with php-common-5.4.16-43.el7_4.1.x86_64

徘徊边缘 提交于 2019-12-06 09:34:41
I just installed CentOS 7 and PHP 7.1xx and MySQL but impossible to install phpMyAdmin. I have an error message but no answer on Google yes only one answer but which itself gives me the same error message. rpm -iUvh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum -y update yum -y install phpmyadmin Error: php71w-common conflicts with php-common-5.4.16-43.el7_4.1.x86_64 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest I couldn't install it directly by YUM either. As I remember, The problem is using CentOS

对象存入-检出对象数据(ceph10.1.0)

久未见 提交于 2019-12-06 08:17:06
一、 进行以下实验操作前先部署 ceph:http://my.oschina.net/u/857184/blog/653349 二、 要把对象存入 Ceph 存储集群,客户端必须做到: 指定对象名 指定存储池 Ceph 客户端检出最新集群运行图,用 CRUSH 算法计算出如何把对象映射到归置组,然后动态地计算如何把归置组分配到 OSD 。要定位对象,只需要对象名和存储池名字即可,例如: ceph osd map {poolname} {object-name} 二、 罗列对象存储池,执行 $ceph osd lspools 三、 我们先创建一个对象,用 rados put 命令加上对象名、一个有数据的测试文件路径、并指定存储池。例如: $ echo "This is test conten" > testfile.txt $rados put test-object-1 testfile.txt --pool=rbd 四、 为确认 Ceph 存储集群存储了此对象,可执行: $rados -p rbd ls 五、定位对象:语法: ceph osd map {pool-name} {object-name} $ceph osd map rbd test-object-1 五、 Ceph 应该会输出对象的位置,例如: 六、 用 ``rados rm`` 命令可删除此测试对象,例如:

centos 7 get latest apache package

旧街凉风 提交于 2019-12-06 08:02:15
This question comes from my lack of understanding of package managers, I run yum list and get httpd-2.4.6-40.el7.centos.4.x86_64 https://rpmfind.net/linux/RPM/centos/updates/7.2.1511/x86_64/Packages/httpd-2.4.6-40.el7.centos.4.x86_64.html Build date: Mon Jul 18 17:32:11 2016 I did yum update && yum install httpd , will this get me the latest version of httpd? where can I check online to confirm my package/build is the latest? how can I periodically install security patches for my version of httpd? update [centos ~]$ httpd -v Server version: Apache/2.4.6 (CentOS) Server built: Jul 18 2016 15:30

Execute an external BLAST program in PHP

柔情痞子 提交于 2019-12-06 08:01:10
I want to execute a blastx search application in PHP instead of Linux console text terminal. The actual command line arguments would be ( see definition of refer ): ./blastx -query $input -db ${Sbjct}_db -evalue 0.0001 -outfmt 6 -out /path/to/output.tsv Here's my PHP partial code. exec(' /path/to/blastx -query /path/to/PAO1.fasta -db /path/to/VFDB_setB_pro -evalue 0.0001 -outfmt 6 -out /path/to/output.tsv '); However, when I call exec() function in PHP program there is nothing happened. I also tried another method. It return error code 1. Here is my php exec() content: exec('sh /path/to

Nginx: Permission denied to Gunicorn socket on CentOS 7

≯℡__Kan透↙ 提交于 2019-12-06 07:28:26
问题 I'm working in a Django project deployment. I'm working in a CentOS 7 server provided ma EC2 (AWS). I have tried to fix this bug by many ways but I cant understand what am I missing. I'm using ningx and gunicorn to deploy my project. I have created my /etc/systemd/system/myproject.service file with the following content: [Unit] Description=gunicorn daemon After=network.target [Service] User=centos Group=nginx WorkingDirectory=/home/centos/myproject_app ExecStart=/home/centos/myproject_app