Created
May 19, 2020 18:17
-
-
Save bryancall/043d95c1f0fc56dcdbd8d4e3c2e4c6f9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11:16:10 bart:~$ cat ~/test.sh | |
#!/bin/bash | |
# clean up | |
cd ~/dev/apache/trafficserver | |
git clean -xfd | |
sudo rm -rf /usr/local/etc/trafficserver /usr/local/var/trafficserver /usr/local/var/log/trafficserver /usr/local/lib/libts* /usr/local/lib64/libts* | |
# build | |
autoreconf -if | |
./configure --enable-ccache --enable-asan | |
make -j | |
if [ $? -ne 0 ]; then exit 125; fi | |
sudo make install -j | |
if [ $? -ne 0 ]; then exit 125; fi | |
# configure | |
sudo /usr/local/bin/traffic_server -f -F & | |
sudo bash -c 'echo map / http://127.0.0.1:80/ > /usr/local/etc/trafficserver/remap.config' | |
#sudo /usr/local/bin/trafficserver stop | |
#sudo /usr/local/bin/trafficserver start | |
# run test | |
curl -D - -s http://127.0.0.1:8080/200_no_cache_0.php | grep 200 | |
curl -D - -s http://127.0.0.1:8080/200_no_cache_0.php | grep 200 | |
if [ $? -eq 0 ]; then exit 1; fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment