linux:admin
Differences
This shows you the differences between two versions of the page.
| linux:admin [2017/01/25 02:31] – [Dynamic route] admin | linux:admin [2022/10/29 16:15] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| {{: | {{: | ||
| - | ===== install | + | ===== Fix Old CentOS Repos ===== |
| - | ==== install | + | Maintainece update not supported from **2020/ |
| + | <code bash> | ||
| + | yum list | ||
| + | Failed to set locale, defaulting to C | ||
| + | Loaded plugins: fastestmirror | ||
| + | Determining fastest mirrors | ||
| + | YumRepo Error: All mirror URLs are not using ftp, http[s] or file. | ||
| + | Eg. Invalid release/ | ||
| + | removing mirrorlist with no valid mirrors: / | ||
| + | </ | ||
| + | |||
| + | Steps: | ||
| + | - Step1: **Update / | ||
| + | <code bash> | ||
| + | [base] | ||
| + | name=CentOS-$releasever - Base | ||
| + | # | ||
| + | baseurl=http:// | ||
| + | gpgcheck=1 | ||
| + | gpgkey=file:/// | ||
| + | #released updates
[updates]
name=CentOS-$releasever - Updates
# | ||
| + | #additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
# | ||
| + | #additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
# | ||
| + | #contrib - packages by Centos Users | ||
| + | [contrib] | ||
| + | name=CentOS-$releasever - Contrib | ||
| + | # | ||
| + | baseurl=http:// | ||
| + | gpgcheck=1 | ||
| + | enabled=0 | ||
| + | gpgkey=file:/// | ||
| + | </ | ||
| + | - Step2:< | ||
| + | yum clean all | ||
| + | </ | ||
| + | ===== Install | ||
| + | ==== Install | ||
| mount /dev/cdrom /mnt/cdrom/ | mount /dev/cdrom /mnt/cdrom/ | ||
| cd / | cd / | ||
| Line 283: | Line 319: | ||
| / | / | ||
| </ | </ | ||
| - | ==== Check netword | + | ==== Check network |
| <code bash> | <code bash> | ||
| / | / | ||
| Line 420: | Line 456: | ||
| === crontab configuration file base on linux user === | === crontab configuration file base on linux user === | ||
| * cat / | * cat / | ||
| - | */30 * * * * / | + | */30 * * * * / |
| */5 * * * * / | */5 * * * * / | ||
| 14 2 * * * / | 14 2 * * * / | ||
| Line 457: | Line 493: | ||
| ls / | ls / | ||
| => 214501_170809.txt | => 214501_170809.txt | ||
| + | </ | ||
| + | === Create contab to update date/time of system === | ||
| + | - Step1: Install ntpdate< | ||
| + | yum install ntpdate | ||
| + | </ | ||
| + | - Step2: Create contab content:< | ||
| + | */30 * * * * / | ||
| </ | </ | ||
| ==== logrotate ==== | ==== logrotate ==== | ||
linux/admin.1485311489.txt.gz · Last modified: (external edit)
