Linux 常用工具
YUM
yum init system
create local repo yum
centos 7 init system
FTP
How to Install and Configure vsftpd on CentOS 6
vsftp install on centos 7
Email
aliyun ecs install email
postfix smtp on centos
centos 6 postfix smpt test
GIT
gogs install centos6
git command example
git format markdown
HTTP Web
apache exampe
h5ai web php file server
apache vhosgts code debug
Nginx Web
nginx install from source
nginx set directory autoindex
autoindex with h5ai web
nginx install pugin ngx-fancyindex
proxy internal vhost to web
dynamic and static by nginx
proxy directory second by nginx
nginx proxy gogs web
jenkns proxy from nginx
ssl certify by nginx
nginx threads fix to 9x
NTP
linux install ntp use asia date
VNC
vnc remote desktop
x11vnc on centos6
Firewall
iptables on centos 7
centos7 firewalld config
Kernel
centos kernel packages
kernel update to 3.10 on centos 6
SYSCTL 内核配置参数分析
NFS
centos6 install nfs servers
mount nfs to linux
mount nfs on centos 6
centos6 nfs verify permissions
SSH
ssh keygen rsa to client
ssh config diffent
Network
centos 7 config net-tool debug ifconfig
debug network card up or down
Samba
samba install on centos 6
samba config example
VIM
VIM using example
本文档使用 MrDoc 发布
-
+
首页
yum init system
# yum init system --- ## Initt system. # yum install -y screen ftp vim wget git cmake gcc gcc-c++ htop # yum install -y java-1.8.0-openjdk # yum groupinstall -y "Development Tools" --- config method yum list table ### Aliyun: # wget http://mirrors.aliyun.com/repo/Centos-5.repo -O /etc/yum.repos.d/Centos-5.repo # wget http://mirrors.aliyun.com/repo/Centos-6.repo -O /etc/yum.repos.d/Centos-6.repo # wget http://mirrors.aliyun.com/repo/Centos-7.repo -O /etc/yum.repos.d/Centos-7.repo ### epel: # wget http://mirrors.aliyun.com/repo/epel.repo -O /etc/yum.repos.d/epel.repo # wget http://mirrors.aliyun.com/repo/epel-5.repo -O /etc/yum.repos.d/epel5.repo # wget http://mirrors.aliyun.com/repo/epel-6.repo -O /etc/yum.repos.d/epel6.repo # rpm -ivh https://mirrors.aliyun.com/epel/epel-release-latest-7.noarch.rpm # rpm -ivh http://mirrors.aliyun.com/epel/epel-release-latest-6.noarch.rpm ### remi: # wget http://rpms.famillecollet.com/RPM-GPG-KEY-remi -O /etc/pki/rpm-gpg/RPM-GPG-KEY-remi # rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-remi # rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm # rpm -Uvh --quiet http://rpms.famillecollet.com/enterprise/remi-release-6.rpm ### 163 yum: # wget http://mirrors.163.com/.help/CentOS5-Base-163.repo -O /etc/yum.repos.d/CentOS5-Base-163.repo # wget http://mirrors.163.com/.help/CentOS6-Base-163.repo -O /etc/yum.repos.d/CentOS6-Base-163.repo ### Sohu: # wget http://mirrors.sohu.com/fedora-epel/5/i386/epel-release-5-4.noarch.rpm ### webtatic: # rpm -Uvh http://repo.webtatic.com/yum/el6/latest.rpm With multimedia/desktop apps and not only # rpm -ivh http://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-2.el6.nux.noarch.rpm ### mysql # http://dev.mysql.com/downloads/repo/yum/ # http://dev.mysql.com/get/mysql57-community-release-el6-8.noarch.rpm # rpm -ivh http://dev.mysql.com/get/mysql57-community-release-el6-8.noarch.rpm ### nginx 1.10 # rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm ### Jenkins # sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo # sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key --- ### ELRepo kernel-3.10.0 To install ELRepo for RHEL-6, SL-6 or CentOS-6: # rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org # rpm -Uvh http://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm # yum --enablerpo=elrepo-kernel -y # yum --enablerepo=elrepo-kernel -y # yum install kernel-lt # yum install kernel-ml --- ### Hugo Linux # wget https://copr.fedorainfracloud.org/coprs/daftaupe/hugo/repo/epel-6/daftaupe-hugo-epel-6.repo # wget https://copr.fedorainfracloud.org/coprs/daftaupe/hugo/repo/epel-7/daftaupe-hugo-epel-7.repo ```bash [daftaupe-hugo] name=Copr repo for hugo owned by daftaupe baseurl=https://copr-be.cloud.fedoraproject.org/results/daftaupe/hugo/epel-7-$basearch/ type=rpm-md skip_if_unavailable=True gpgcheck=1 gpgkey=https://copr-be.cloud.fedoraproject.org/results/daftaupe/hugo/pubkey.gpg repo_gpgcheck=0 enabled=1 enabled_metadata=1 Docker-engine ``` --- 官方源国内被墙了 ### 切换到aliyun ```bash [docker-main-repo] name=Docker main Repository from aliyun #baseurl=https://yum.dockerproject.org/repo/main/centos/7 baseurl=https://mirrors.aliyun.com/docker-engine/yum/repo/main/centos/7/ enabled=1 gpgcheck=1 gpgkey=https://mirrors.aliyun.com/docker-engine/yum/gpg ``` # yum install docker-engine ### epel4 - epel5 http://archive.fedoraproject.org/pub/archive/epel --- ```base [epel-4] name=epel 4 i386 baseurl=http://archive.fedoraproject.org/pub/archive/epel/4/i386 enabled=1 gpgcheck=0 [epel-5] name=epel 5 i386 baseurl=http://archive.fedoraproject.org/pub/archive/epel/5/i386 enabled=1 gpgcheck=0 ``` --- ### Tencent: EPEL ```bash # epel(RHEL5系列) wget -O /etc/yum.repos.d/epel.repo http://mirrors.cloud.tencent.com/repo/epel-5.repo # epel(RHEL6系列) wget -O /etc/yum.repos.d/epel.repo http://mirrors.cloud.tencent.com/repo/epel-6.repo # epel(RHEL7系列) wget -O /etc/yum.repos.d/epel.repo http://mirrors.cloud.tencent.com/repo/epel-7.repo ``` --- ### Tencent: centos ```bash centos5 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.cloud.tencent.com/repo/centos5_base.repo centos6 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.cloud.tencent.com/repo/centos6_base.repo centos7 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.cloud.tencent.com/repo/centos7_base.repo ``` --- done
Bobby
2021年12月20日 16:32
分享文档
收藏文档
阅读
200
上一篇
下一篇
微信扫一扫
复制链接
手机扫一扫进行分享
复制链接
关于 MrDoc
觅思文档MrDoc
是
州的先生
开发并开源的在线文档系统,其适合作为个人和小型团队的云笔记、文档和知识库管理工具。
如果觅思文档给你或你的团队带来了帮助,欢迎对作者进行一些打赏捐助,这将有力支持作者持续投入精力更新和维护觅思文档,感谢你的捐助!
>>>捐助鸣谢列表
微信
支付宝
QQ
PayPal
Markdown文件
分享
链接
类型
密码
更新密码