Professional Documents
Culture Documents
Steup Redy Coommand Devloper & Tester VM
Steup Redy Coommand Devloper & Tester VM
vim /etc/selinux/config
:
:
#disbled
:wq!
-----------------------------------------------------------------------------------
--------------------------------------------------------
vim /etc/security/limits.conf
-----------------------------------------------------------------------------------
------------------------------------------------------------
vim /etc/sysctl.conf
net.ipv4.ip_forward = 1
kernel.shmall = 4294967296
net.ipv4.tcp_timestamps=0
net.ipv4.tcp_sack=0
net.core.netdev_max_backlog=500000
net.ipv4.tcp_keepalive_intvl=2
net.ipv4.tcp_keepalive_probes=5
net.core.optmem_max=536870912
net.core.rmem_default=268435456
net.core.rmem_max=536870912
net.core.wmem_default=268435456
net.core.wmem_max=536870912
net.ipv4.tcp_mem=16777216 25165824 33554432
net.ipv4.tcp_rmem=8388608 12582912 25165824
net.ipv4.tcp_wmem=8388608 12582912 25165824
net.ipv4.udp_mem=16777216 25165824 33554432
net.ipv4.udp_rmem_min=16777216
net.ipv4.udp_wmem_min=16777216
net.ipv4.tcp_low_latency=1
net.ipv4.tcp_keepalive_intvl=2
net.ipv4.tcp_keepalive_time=20
net.ipv4.tcp_keepalive_probes=5
fs.file-max=500000
kernel.core_pattern = core
fs.suid_dumpable = 1
-----------------------------------------------------------------------------------
-------------------------------------------------------------------------
#sysctl -p
#reboot
#yum -y update
-----------------------------------------------------------------------------------
-------------------------------------------------------------------
Issue
CentOS-8 - AppStream
Failed to download metadata for repo 'AppStream'
Error: Failed to download metadata for repo 'AppStream'
or
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal
mirrorlist: No URLs in mirrorlist
Solution
cd /etc/yum.repos.d/
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g'
/etc/yum.repos.d/CentOS-*
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-----
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
--------
cp my.cnf /etc/
(" y" )
vim /etc/my.cnf
tail -f /var/log/mysqld.log
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
--------------
(Mysql 8.0 X steup )
mysql -u root -p