Modify 'make.conf' to improve ports download and install speed

append below codes:
MASTER_SITE_OVERRIDE?=/
ftp://ftp.freebsdchina.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}//
ftp://ftp.tw.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR} //
ftp://ports.hshh.org/${DIST_SUBDIR}/
MASTER_SITE_OVERRIDE?=${MASTER_SITE_BACKUP}

some other advice from here
MASTER_SITE_OVERRIDE?=/
ftp://ftp6.tw.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/ /
http://ports.cn.freebsd.org/${DIST_SUBDIR}/ /
ftp://ftp.tw.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/ /
http://ports.hshh.org/${DIST_SUBDIR}/ /
ftp://ftp.freebsdchina.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/ /
ftp://ftp2.tsinghua.edu.cn/mirror/FreeBSD/distfiles/${DIST_SUBDIR}/ /
ftp://ftp2.cn.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/ /

把这些复制到make.conf
电信用ports.hshh.org
网通用ftp6.tw.freebsd.org

### Redis Windows Configuration Settings For configuring Redis on Windows, the primary configuration file used is `redis.windows.conf`. This file contains numerous settings and parameters that can be adjusted according to specific requirements. The location of this configuration file should be specified when starting the Redis server using a command similar to: ```bash .\redis-server.exe .\redis.windows.conf ``` The configuration approach ensures there is no necessity for creating a Dockerfile specifically for the Redis container if running locally[^1]. Each parameter within the `redis.windows.conf` allows customization over various aspects such as memory management, persistence options, network configurations, etc. #### Memory Management Parameters Several important parameters related to memory management include: - **maxmemory**: Sets the upper limit of memory usage by Redis. - **maxmemory-policy**: Defines how Redis will evict keys when maxmemory is reached. These policies help manage data eviction strategies effectively without causing out-of-memory issues. #### Network Configuration Parameters Network-related settings are crucial for controlling access and connectivity: - **bind**: Specifies which IP addresses the server listens on; setting it appropriately enhances security. - **port**: Determines the TCP port number under which Redis operates. Binding correctly helps secure instances from unauthorized external connections while ensuring internal services connect seamlessly. #### Persistence Options To ensure durability of stored data, two main mechanisms exist: - **save**: Configures snapshotting conditions where datasets get saved periodically into RDB files. - **appendonly yes/no**: Enables Append Only File (AOF) logging instead of or alongside snapshots. Choosing between these methods depends largely upon recovery priorities versus performance considerations. When deploying clusters across multiple nodes, each must possess distinct cluster configuration files due to unique identifiers required per instance[^2]. --related questions-- 1. How does one modify the bind address in `redis.windows.conf`? 2. What are some best practices regarding memory policy selection? 3. Can both AOF and RDB persistency modes operate simultaneously? If so, what benefits do they offer together? 4. In what scenarios would adjusting the 'maxmemory' value become necessary? 5. Why is specifying separate config files essential for clustered setups?
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值