Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 3

( Devloper & Tester all use command installtion centos 7 & 8 )

vim /etc/selinux/config
:
:
#disbled
:wq!

systemctl disable --now firewalld.service

sestatus ( check status disabled )

systemctl status firewalld.service

-----------------------------------------------------------------------------------
--------------------------------------------------------

vim /etc/security/limits.conf

* soft nofile 500000


* hard nofile 500000
greek hard nproc 100000
greek soft nproc 100000
* soft core 100000
* soft stack 81000
* hard memlock 16809984
* soft memlock 16809984

-----------------------------------------------------------------------------------
------------------------------------------------------------

vim /etc/sysctl.conf

net.ipv4.ip_forward = 1

# Controls source route verification


net.ipv4.conf.default.rp_filter=0
net.ipv4.conf.all.rp_filter=0
net.ipv4.conf.ens1f1.rp_filter=0
net.ipv4.conf.eno2.rp_filter=0
net.ipv4.conf.ens2f0.rp_filter=0
net.ipv4.conf.ens1f0.rp_filter=2

# Do not accept source routing


net.ipv4.conf.default.accept_source_route = 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-*

-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-----

yum install gnome-tweaks tigervnc* telnet epel-release traceroute -y

(* Error repo appstream / set by repos.d path command and installed )

yum install https://dev.mysql.com/get/mysql80-community-release-el8-5.noarch.rpm -y

yum module disable mysql -y


yum install mysql-community-client-8.0.30* mysql-community-common-8.0.30* mysql-
community-devel-8.0.30* mysql-community-libs-8.0.30* mysql-community-server-8.0.30*
-y

( file copy mysql win.ssp )

-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
--------

cp my.cnf /etc/
(" y" )

vim /etc/my.cnf

tail -f /var/log/mysqld.log

-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
--------------
(Mysql 8.0 X steup )

mysql -u root -p

(New terminal open and type command )

systemctl start mysqld.service

(old terminal open and password copy and enter )

You might also like