Questions tagged [centos]
CentOS (Community Enterprise Operating System) is based on the Red Hat Enterprise Linux operating system. QUESTIONS MUST BE ABOUT RUNNING PROGRAMS UNDER CENTOS. Questions about server administration may be asked on https://serverfault.com
12,261
questions
0
votes
0
answers
6
views
yum install httpd 2.4.6-97.el7.centos.5 and the equivalent compile from source arguments on centos 7
I am using HTTPD package to host apache server and I want to use customized specific package during the compilation, therefore I need to compile httpd from source and I don't know what are the exact ...
0
votes
0
answers
9
views
ModuleNotFoundError: No module named 'pexpect'
My python script is throwing error while trying to import pexpect
python3 amf_bringup.py
Traceback (most recent call last):
File "amf_bringup.py", line 1, in <module>
import pexpect
...
0
votes
0
answers
4
views
Failed to restart smbd.service: Unit smbd.service not found
Hey I have set up a cent os 6 machine and want to share a folder with samba for a windows machine. The problem is that I can't start smbd service and this error comes up("Failed to restart smbd....
0
votes
0
answers
14
views
RPM causes high CPU ussage on CentOS CWP
Today the server was under high load for couple of hours when complex PHP script was executed without supervision.
After that the CPU load was constantly at 100% with RPM processes taking up most of ...
1
vote
3
answers
45
views
How can i find and rename multiple files
I have multiple files in multiple directories and i have to rename these files from lowercase to uppercase; the file extension may vary and needs to be in lowercase (should be renamed too for files ...
-1
votes
0
answers
13
views
File.canWrite() method keeps saying a read only file on Cent OS 7 is Writable
I have a method below to detect if an input file is writable or read only permission.
I tested the method and it runs perfectly on both Windows and Ubuntu OS.
However, on Cent OS 7, the method File....
-1
votes
0
answers
6
views
How can i get ssl certificate for my hyper v virtual machine
Is it possible to get ssl from trusted ca for virtual machine. I think its not possible to domain verification as I dont have a domain for my virtual machine.
1
vote
0
answers
30
views
Trying to understand web-server performance bottleneck
I have a local server running on CentOS 7 (CWP pro). It's primarily used as a web-server (PHP/FPM + MariaDB)
Hardware specs
Intel Xeon E5-2689 @ 2.60GHz x 16 Cores
12GB of DDR3 RAM
100GB of NVME ...
2
votes
2
answers
37
views
Unexpected exit code (2 and 3) of c programs
I'm having this weird problem which I can't really figure our why this is happening.
Note: these programs are executed on centOS at the bash command line.
I have two similar C programs which are:
...
0
votes
1
answer
32
views
Shell script does not run completely when runs by cron
The script in file modBackup.sh does not run completely when started by cron, the result is a corrupted tar.gz file that is half the size of this one if I run manually. In any case, its size is many ...
0
votes
1
answer
29
views
error Performing erlang migration to another node
I have 2 nodes rabbit2 and rabbit3 everything is working fine until i start cluster
then I did the command
scp -r rabbit2:/var/lib/rabbitmq/.erlang.cookie /var/lib/rabbitmq/.erlang.cookie .
and after ...
0
votes
2
answers
37
views
How to make mod_ssl pointing to different openssl directory instead of default one in apache?
The question is raised because the original openssl version doesn't pass the Vulnerability Scanning, therefore I need to upgrade the openssl package on apache centos 7 and I am using httpd. I have ...
1
vote
1
answer
13
views
Fail to get exact Centos kernel version
uname -a tells the "kernel version" is 3.10.0
[root@iZbp16uggk8lf3x949ewxiZ ~]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
[root@iZbp16uggk8lf3x949ewxiZ ~]# uname -a
...
1
vote
0
answers
26
views
why julia Pkg.add failed on a CentOS server?
I am not root user of a HPC, where I install julia on my own path and I want to add some julia packages like Plots. However when using Pkg.add, it cannot connect to the target website
How can I fix ...
0
votes
0
answers
12
views
How to fix Unable join_cluster rabbitmq
I have 2 nodes rabbitmq01 and rabbitmq 2 before i do join_cluster i checked the status of these 2 nodes
enter image description here
Then I stopped_app and did join_cluster but the error came again
...
0
votes
0
answers
15
views
mysql secure installation without loosing data
I have a centos server, which I've broke its mysql, so I'm going to do a mysql secure installation to fix it.
I wanted to know, where are mysql data (including my databases and tables) are stored so ...
0
votes
0
answers
14
views
Tomcat 404 error after swapped META-INF/context.xml file
I have Tomcat 8 installed on CentOS 7 x64
I had it set up correctly so I could go to Tomcat's manager app. I then swapped /META-INF/context.xml to a different context.xml file. After changing the ...
0
votes
0
answers
11
views
load .so file use fullPath fail with dotnet3.1 on centos7
I use dotnetcore 3.1 Pinvoke to call my .so file,but it can't be load.I used myLibraryFullPath to load it.What can i do to load this .so file?
i can post image,this is file image
0
votes
0
answers
16
views
Random unexpected connection errors while fetching data [closed]
I am having a really weird problem with my VPS (Centos 7) for the last 2 days. I have an application where I fetch data from dozens of 3rd party websites. For the past 2 years everything was working ...
0
votes
0
answers
37
views
Unable to connect to mysql on remote server
I want to connect a mysql database on remote server(simulating by virtual machine) by c# :
remote server OS: Centos 8
Remote server IP:192.168.1.34
Port:22
database name: dbname
database Port=3306
I'...
0
votes
0
answers
39
views
Apache 1.3.37 server returnes 403 Access Denied when post request
update 2022-05-14
i found that server shows 403 when post request, not get request. get reqeust works well, not post.
hi i got problem with the apache server
that server started response 403 Access ...
-1
votes
0
answers
9
views
`ping` (icmp) still working even with `firewalld` blocking it
I have my firewalld set to block everything, except the ports/protocols below.
[root@localhost ~]# firewall-cmd --zone=zona_firewalld --list-all
zona_firewalld (active)
target: DROP
icmp-block-...
-1
votes
0
answers
13
views
Getting an error with SSH validate on CentOS using ansible
So have this piece of code:
- name: Update sshd configuration safely
template:
src: sshd_config.j2
dest: /etc/ssh/sshd_config
owner: root
group: root
mode: '0600'
validate: /usr/...
0
votes
0
answers
10
views
Erase java jdk using linux command line on CENTOS
I have tried to erase java on my linux machine by erasing it from /usr/lib/jvm, but now when trying to install java again, it says, it is already installed.
yum -y install java-1.8.0-openjdk
...
0
votes
0
answers
28
views
Amazon Linux dependency error on yum update
When running:
sudo yum update
I get:
Loaded plugins: amzn_workspaces_filter_updates, halt_os_update_check, priorities, update-motd
remi-php74 ...
-1
votes
0
answers
21
views
Which of the following two is more reliable in the data center, linux kernel or hard drive? [closed]
I want to find out the linux kernel panic rate in the real production environment, but I failed to get any useful statistics. There are many failure rate statistics for computer hardware like hard ...
0
votes
0
answers
7
views
Geth run myself single node
I ran into a problem where I saved the server storage snapshot while the node was not stopped. Then when I want to restart the node service using the snapshot, the log is displayed as Truncating ...
-1
votes
1
answer
43
views
How to get this makefile to work correctly?
I cannot seem to get a makefile to run correctly. I am following an online Linux tutorial to compile C libraries. Just looking for the reasons why this will not run correctly. I get:
make: ...
0
votes
1
answer
40
views
centos firewall-cmd block the awk ips using a script
There are many awk attacks to my server. I have tried to block them , but too much of them .
is there a way to block them one time?
I use this command :
netstat -an|awk -F: '{print $2}'|sort|uniq -c|...
4
votes
1
answer
61
views
Does ScyllaDB Support Centos Stream 8-9?
I'm looking at the list of supported OS and I only see version 7 and 8 of Centos/RHEL are supported.
However, I plan on installing ScyllaDB on Ryzen 9 CPU which does not support Centos 7 / 8.
Does ...
0
votes
0
answers
16
views
Moving tftpboot folder
Ok, so I am trying to move the /var/lib/tftpboot folder the "proper" way to a dedicated partition. To accomplish this goal I have setup a separate partition called /app and moved the ...
0
votes
0
answers
15
views
Apache HTTP Headers Time Zone
My server is set to use UTC time zone:
$ timedatectl | grep zone
Time zone: UTC (UTC, +0000)
And my Apache 2.4.6 web server is configured to use UTC as well:
grep SetEnv /etc/httpd/conf/httpd.conf
...
0
votes
0
answers
90
views
Upgrade pip to latest version
In one environment (Ubuntu 20.04.4 LTS), I get this:
» pip --version
pip 21.3.1 from /xxx/.venv/lib/python3.6/site-packages/pip (python 3.6)
» pip install --upgrade pip
Requirement already satisfied: ...
0
votes
0
answers
17
views
CentOS Copy SSH Key problem to another server, when there is no problem with root user
Guys hello to everyone.
I have 2 different CentOS 7 machine (Cen1, Cen2). I want to do ssh from Cen2 to Cen1 with ssh key. And i created ssh key, i used this command to share with Cen1;
ssh-copy-id ...
0
votes
0
answers
34
views
Can't connect to server using Uvicorn
I have a host with a public and private IP address.
I run on my server: python3.8 -m uvicorn server:app --host 0.0.0.0 --port 8000
Obtaining:
INFO: Started server process [5904]
INFO: Waiting ...
0
votes
1
answer
24
views
Why chronyc makestep does not synchronize time instantly?
On a CentOs 7 machine, I have a service that modifies the timezone and just after that it makes a request to S3 to download some binaries. In fact, the request fails with the well known error message:
...
0
votes
0
answers
20
views
how to run binary executables in robotframe work on centos7?
Run Process /path to binary executable/cc1 -p/path to the file to be excuted/abc.prf -its -m /path to the other file to be executed/xyz.ctl shell=true cwd=path to binary exexutable
some thing like ...
-1
votes
0
answers
8
views
CentOS 7.9 dedicate server errors to be recorded in their respective folders were they occurred
I just upgraded my dedicate servers to CentOS 7.9. Each one has about 15 domains and all of them are php and mysql sites.
With the pervious version 6.x when and error occurred, the "system" ...
0
votes
0
answers
21
views
Ansible script with | differences of empty map fails [duplicate]
I have the following script that works when vlan_ids (map) have values,
what would be the best approach to fix make it work ?
- name: Set Ethernet address for each interface as detected
lineinfile:
...
0
votes
0
answers
18
views
Cron script to restart service on Error 503
Dear Community Members,
I'm facing an issue in which my website redis service is making my website showing 503 error on regular interval. Previously it was in 2-3days so I made a cronjob to delete ...
0
votes
0
answers
10
views
Will a package built with make on a Red Hat machine work on a Cent OS machine?
If I:
Pull down a git hub repo on a Red Hat host
Then run: make and make install to build the package
Then take that folder and move it on a Cent OS host,
Will there be any issues?
1
vote
0
answers
39
views
npm error code EACCES 243. What is causing some directories in the npm cache to get created without the execute flag set?
When running builds on our TeamCity agent (centos 7), any npm command (version 7.24.2) run with the teamcity user generates the following error :
[Step 2/25] npm cache clear --force
[npm cache clear --...
-1
votes
0
answers
36
views
config advise mariadb after several issues
I have executed mysqltuner in my production server during an issue, the database didn't responde.(580 % mariadb cpu usage) I needed to restart mysqld I would like with theses elements advises to ...
0
votes
0
answers
22
views
How to install rpm package in aspnet 6 app docker image?
I want to host aspnet 6.0 application in docker container on AlmaLinux (or any centos compatible destro). The application also needs to have maprdrill odbc client that is available only in rpm package....
0
votes
0
answers
7
views
CentOS MySQL Batch run SQL
This may have been answered elsewhere, but I can't seem to locate it, so please accept my sincere apologies if this is a duplicate question.
Complete newbie to CentOS command line operation of MySQL.
...
0
votes
0
answers
11
views
laravel app deployment on Centos Fedora ( CPANEL)
i'm planning to deploy laravel app into centos fedora with cpanel
i set the server requirements for the client to be :
4 Virtual processors • 8 GB memory VRAM • 500 GB SAN Storage useable Capacity (...
-1
votes
0
answers
8
views
why mysql 8.0.17 is clean after crash [migrated]
I was working with my website and after I started a very huge process in the server (Centos 8.5.2111), the server can not allocate more tasks because memory full, and mysql (8.0.17) started with ...
0
votes
0
answers
19
views
Grafana not starting after upgrade to any version after 8.1.8 OSS
Hi I have a centOs VM with OSS grafana running on it. It also has an Auth LDAP enabled. I had recently upgraded to 8.1.8. Now if I try to upgrade to any other higher version it fails.
Logs after ...
0
votes
0
answers
10
views
how to change jenkins httpPort in CentOS
I changed JENKINS_PORT in '/etc/sysconfig/jenkins'
enter image description here
0
votes
0
answers
8
views
Running commands on remote server periodically
I have a job running periodically that runs commands on remote server using ssh.This is not feasible as it establishes ssh connection every time. How to create a single ssh session, persist it and use ...