summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2017-09-19 19:31:57 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2017-09-19 19:31:57 +0800
commit52e6d677d167156c2215f79979597ac324d6edca (patch)
tree646d31011c49a1a5397d198f8307b68f5fb664b8
parent63c3275a9abf1815c1843ff74082a47742366507 (diff)
Change listen ip to 0.0.0.0
Change-Id: I0853329fc3479f562a4d41e1a9adb195f6f337da Issue-Id: VFC-389 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r--run.sh3
-rw-r--r--stop.sh3
2 files changed, 2 insertions, 4 deletions
diff --git a/run.sh b/run.sh
index d4c10a52..c96b7a73 100644
--- a/run.sh
+++ b/run.sh
@@ -13,5 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-sip=127.0.0.1
-nohup python manage.py runserver $sip:8806 > /dev/null &
+nohup python manage.py runserver 0.0.0.0:8806 > /dev/null &
diff --git a/stop.sh b/stop.sh
index 40ed3b60..5b0b8065 100644
--- a/stop.sh
+++ b/stop.sh
@@ -13,5 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-sip=127.0.0.1
-ps auxww | grep "manage.py runserver $sip:8806" | awk '{print $2}' | xargs kill -9
+ps auxww | grep "manage.py runserver 0.0.0.0:8806" | awk '{print $2}' | xargs kill -9