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 发布
-
+
首页
create local repo yum
# create local repo yum --- 需在环境内准备好yum源 获取https://repo.saltstack.com/yum/redhat/6.0/x86_64/2016.11/ 安装包到本地仓库 ## 一、安装createrepo包 $ yum install createrepo -y ## 二、创建本地源文件目录及创建仓库 $ mkdir -p /data/saltstack-yum/ $ createrepo /data/saltstack-yum/ ## 三、下载rpm包 ### 方案一: $ wget -r -c -np -nd -P /data/saltstack-yum/ https://repo.saltstack.com/yum/redhat/6.0/x86_64/2016.11/ 说明: ```python -r 表示递归下载 -np 不下载旁站连接 -c 断点续传 -nd 递归下载时不创建一层一层的目录,把所有的文件下载到当前目录 -P 表示下载那个目录 ``` 清空html开头文件: $ rm -r /data/saltstack-yum/index.html* ### 方案二: 如果yum源这台机器不能连接公网,可以离线下载相关rpm包到本地电脑,然后上传到yum源服务器相应路径下。 ## 四、更新仓库 createrepo --update /data/saltstack-yum/ ## 五、 eg: repo pkg ```python vim /etc/yum.repos.d/salt.repo [base] name=local repo baseurl=http://myipaddr/saltstack-yum/ gpgcheck=0 enabled=1 ``` deploy nginx to view yum repo.
Bobby
2021年12月20日 16:33
分享文档
收藏文档
阅读
153
上一篇
下一篇
微信扫一扫
复制链接
手机扫一扫进行分享
复制链接
关于 MrDoc
觅思文档MrDoc
是
州的先生
开发并开源的在线文档系统,其适合作为个人和小型团队的云笔记、文档和知识库管理工具。
如果觅思文档给你或你的团队带来了帮助,欢迎对作者进行一些打赏捐助,这将有力支持作者持续投入精力更新和维护觅思文档,感谢你的捐助!
>>>捐助鸣谢列表
微信
支付宝
QQ
PayPal
Markdown文件
分享
链接
类型
密码
更新密码