-
Notifications
You must be signed in to change notification settings - Fork 0
Add Change Host
정명주(myeongju.jung) edited this page Feb 7, 2018
·
1 revision
#!/usr/bin/env bash
WHO=`whoami`
if [ "root" != "$WHO" ]
then
echo "You are necessary root account."
exit 2
fi
if [ -z $1 ] || [ -z $2 ]
then
echo "./hosts.sh ipaddress hostname"
exit 2
fi
IP=$1
HOST=$2
if grep -F ${2} /etc/hosts
then
echo "Already exists $HOST. Will change"
sed -i "/$HOST/ s/.*/$IP $HOST/g" /etc/hosts
else
echo "Not exists $HOST. Will add"
echo "$IP $HOST" >> /etc/hosts
fi
#!/usr/bin/env bash
WHO=`whoami`
if [ "root" != "$WHO" ]
then
echo "You are necessary root account."
exit 2
fi
./hosts.sh 0.0.0.1 domain1.com
./hosts.sh 0.0.0.2 domain2.com
./hosts.sh 0.0.0.3 domain3.com
if [ "$?" -gt "0" ]
then
# Do work for when command has a failure exit
exit $?
fi
JAVA
JPA
- JPA-Create-And-Update
- Optional-Eager
- QueryDsl-Configuration
- QueryDsl-More-Type-safety
- QueryDsl-SubQuery
DDD
Install
Spring
Spring-Boot
- Swagger2-Configuration
- Spring-Restdocs-Configuration
- Spring-Page-Jackson
- JSR310-Guide
- logback-spring.xml
- WebMvcUtils.java
- Spring-Boot-Properties
- Spring-Boot-Hidden-Gems
- Spring-Boot-Config
Spring-Cloud
- Spring-Cloud-Zuul
- Spring-Cloud-Feign
- Spring-Cloud-Hystrix
- Spring-Cloud-Consul
- Spring-Cloud-Ribbon
- Spring-Cloud-Circuit-Breaker
JavaScript
Gradle
Test
Linux
Etc
TODO http://zoltanaltfatter.com/2017/06/09/publishing-domain-events-from-aggregate-roots/