#CentOS

บทความทั้งหมดที่ติดแท็กนี้

Webhosting

แก้ปัญหา Ignoring file 'plesk.list.ai_back' in directory

N: Ignoring file 'plesk.list.ai_back' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension rm /etc/apt/sources.list.d/plesk.list.ai_back ที่มา : https://talk.plesk.c

Webhosting

เลือกเวอร์ชั่น 110 สำหรับ cPanel & WHM, บน Centos7

เลือกเวอร์ชั่น 110 สำหรับ cPanel & WHM, บน Centos7 vi /etc/cpupdate.conf CPANEL=110 RPMUP=daily SARULESUP=daily STAGING_DIR=/usr/local/cpanel UPDATES=daily

Webhosting

install php5.6 on plesk centos8

1. Install remi repo in centos 8 dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm

General

เปลี่ยน SSH Port บน Centos 7

1.แก้ไขไฟล์ sshd config vi /etc/ssh/sshd_config 2.แก้ # ออก Port 2233 3.ติดตั้ง policycoreutils-python yum install policycoreutils-python -y 4.เพิ่ม Port semanage port -a -t ssh_po

Software

CentOS 6 EOL Vault repository

CentOS 6 EOL Vault repository curl https://www.phangngacloud.com/files/centos6-eol.repo --output /etc/yum.repos.d/CentOS-Base.repo EPEL repository curl https://www.phangngacloud.com/files/

Security

ติดตั้ง ClamAV บน Centos 7 + Directadmin

ติดตั้ง ClamAV บน Centos 7 + Directadmin cd /usr/local/directadmin/custombuild ./build update ./build set clamav yes ./build clamav เพิ่ม Rules vi /etc/freshclam.conf DatabaseCusto

General

การติดตั้ง Open VM Tools on CentOS/RHEL 8

sudo dnf install open-vm-tools -y หรือ sudo dnf install open-vm-tools open-vm-tools-desktop -y

Hardware

ตรวจสอบข้อมูล Disk Centos (smartctl Utility)

ติดตั้ง smartctl Utility บน CentOS7 yum install smartmontools -y แสดงข้อมูล disk smartctl -a /dev/sdb สำหรับ IDE drive smartctl -a -d ata /dev/sdb สำหรับ SATA drive smartct

Software

Change OpenSSH Port On CentOS 8

Change OpenSSH Port On CentOS 8 sudo vi /etc/ssh/sshd_config แก้ไข Port 2299 (เลขพอร์ตที่ต้องการ) sudo yum install policycoreutils-python-utils sudo semanage port -a -t ssh_port_t

Software

ติดตั้ง vmwaretool centos7

ก่อนติดตั้งให้ mount แผ่น vmwaretool ใน VM ก่อน จากนั้นใช้คำสั่งดังนี้ yum install perl gcc make kernel-headers kernel-devel -y mkdir /mnt/cdrom mount /dev/cdrom /mnt/cdrom

Software

Change OpenSSH Port On CentOS 7

Change OpenSSH Port On CentOS 7 sudo vi /etc/ssh/sshd_config แก้ไข Port 2299 (เลขพอร์ตที่ต้องการ) sudo yum -y install policycoreutils-python wget unzip perl-Data-Dumper sudo semana

Software

Install perl-Data-Dumper

To fix problem install perl-Data-Dumper with YUM: yum install perl-Data-Dumper ที่มา : https://arstech.net/fix-webmin-error-failed-dependencies-perldatadumper/

Webhosting

Install cpan And setup spamassassin Centos + Directadmin

Install cpan And setup spamassassin Centos + Directadmin 1. yum install cpan -y yum install perl-ExtUtils-MakeMaker perl-Digest-SHA perl-Net-DNS perl-NetAddr-IP perl-Archive-Tar perl-I

Webhosting

How to install dig on CentoS 7

How to install dig on CentoS 7 sudo yum install bind-utils

Software

error: db5 error(-30973)

error: db5 error(-30973) from dbenv->open: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using db5 - (-30973) error: cannot open Packages database in /va

Software

xfs_repair CentOS7

sudo xfs_repair -v -L /dev/sda3

Software

auto run script at boot time in centos7

ตั้งค่า ในไฟล์ /etc/rc.d/rc.local กำหนดสิทธิ์ chmod +x /etc/rc.d/rc.local

Networking

Speedtest-cli บน CentOS / RHEL

Install python sudo yum install python Download speedtest_cli.py wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py chmod +x sp

Webhosting

ติดตั้ง Sentora บน CentOS

Sentora - (Current Version) MySql -5.5.29 Apache - 2.4.3 PHP -5.3.20 Bind - 9.9.2-P1 phpMyAdmin - 3.5.8.1 RoundCube - 0.9.2 Dovecot - 2.0.9 Postfix - 2.6.6 proFTPd - 1.3.3g การติดตั้ง yum -y u

Software

Upgrade Python from 2.6 to 2.7 on Centos 6.5

How can I upgrade it in Centos 6.5? I try below Download Python and extract it wget http://www.python.org/ftp/python/2.7.8/Python-2.7.8.tar.xz xz -d Python-2.7.8.tar.xz tar -xvf Python-2.7.8.tar