1234567891011121314151617181920212223 |
- #!/bin/bash -v
- yum update -y
- yum install git -y
- yum install python3 -y
- pip3 install boto3
- # Setup BBR
- echo "Setup BBR"
- cat <<EOF>> /etc/sysconfig/modules/tcpcong.modules
- #!/bin/bash
- exec /sbin/modprobe tcp_bbr >/dev/null 2>&1
- exec /sbin/modprobe sch_fq >/dev/null 2>&1
- EOF
- chmod 755 /etc/sysconfig/modules/tcpcong.modules
- echo "net.ipv4.tcp_congestion_control = bbr" >> /etc/sysctl.d/00-tcpcong.conf
- modprobe tcp_bbr
- modprobe sch_fq
- sysctl -w net.ipv4.tcp_congestion_control=bbr
- echo "Download application amazon-s3-resumable-upload.git"
- cd /home/ec2-user/ || exit
- git clone https://github.com/aws-samples/amazon-s3-resumable-upload
|