在Linux系統上部署服務後訪問不到

2021-09-25 09:10:46 字數 467 閱讀 4759

今天在linux系統上部署專案的時候發現乙個問題,服務啟動沒有報錯,但是就是訪問不到。之後發現是linux系統的防火牆沒有關閉。用「centos7」將防火牆關閉後服務就可以正常訪問了;

centos 7.0預設使用的是firewall作為防火牆

檢視防火牆狀態:firewall-cmd --state

停止firewall:systemctl stop firewalld.service

禁止firewall開機啟動:systemctl disable firewalld.service

關閉防火牆:service iptables stop

啟動防火牆:service iptables start

重啟防火牆:service iptables restart

檢視防火牆狀態:service iptables status

永久關閉防火牆:chkconfig iptables off

linux系統上部署nfs服務

環境說明 server 192.168.0.65 client 192.168.0.68 os centos 7.2 需求 多台主機之間檔案共享 一,首先在server端安裝nfs,rpcbind 服務 1.檢測服務是否已安裝。rpm qa grep nfs rpm qa grep rpcbind ...

Tomcat在Linux上部署

第一步 關閉tomcat服務 usr local apache tomcat bin shutdown.sh 第二步 部署專案檔案 1.備份 usr local filename 2.工程上傳到部署目錄中 覆蓋掉原來的,或者先把原來的工程刪了 3.將件配置檔案 conf dev filename 下...

django在linux上部署

使用nginx反向 時使用 socket 127.0.0.1 8011 直接作為web伺服器使用 記得host一定要是0.0.0.0 配置工程目錄 chdir tmp pycharm project 368 配置專案的wsgi目錄 注意是相對於工程目錄 wsgi.py 檔案時django框架自動生成...