Change listen ip to 0.0.0.0 27/13427/1
authorfujinhua <fu.jinhua@zte.com.cn>
Tue, 19 Sep 2017 11:31:57 +0000 (19:31 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Tue, 19 Sep 2017 11:31:57 +0000 (19:31 +0800)
Change-Id: I0853329fc3479f562a4d41e1a9adb195f6f337da
Issue-Id: VFC-389
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
run.sh
stop.sh

diff --git a/run.sh b/run.sh
index d4c10a5..c96b7a7 100644 (file)
--- 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 40ed3b6..5b0b806 100644 (file)
--- 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