Build yum software source

yum source software to build

  1. Installation centos7.5
  2. 配置
    yum install createrepo
    yum install httpd
    service httpd status/start
    cd /var/www/html/
    mkdir Packages
    cd Packages
    createrepo .
  3. Access
    http://10.162.177.57/Packages/

apache version: httpd-2.4

redhat / centos 7 default Once configured, access to customized Web site, a. Chinese file name garbled, b. Since the directory name is too long, truncated, garbled behind to follow,

1. Modify the default language page coding

<Directory "/var/www/html">   #<-----找到网站根目录位置

        ....

        IndexOptions Charset=UTF-8 #<-----添加此项 </Directory>

2. Do not modify the directory file names are truncated

打开编辑/etc/httpd/conf.d/autoindex.conf,找到“FancyIndexing HTMLTable VersionSort”这段,并修改:

FancyIndexing HTMLTable VersionSort NameWidth=*    #<--添加红色字段

Set up more than two, the problem is solved!

Yum local machine configuration known sources:

we /etc/yum/repos.d/jkhere.repo

[jkhere_base]
name=jkhere Production
baseurl=http://10.162.177.57/Packages enabled=1 gpgcheck=0 metadata_expire=10 #[weiziran_base] #name=weiziran Production #baseurl=http://100.95.192.121/pnf/ #enabled=1 #gpgcheck=0 #metadata_expire=10

Guess you like

Origin www.cnblogs.com/kelvinchiang/p/12538601.html
Recommended