This commit is contained in:
dami
2026-04-11 20:23:44 +08:00
parent 320001b3a3
commit b769b79b9a
4 changed files with 8 additions and 6 deletions
+3 -3
View File
@@ -2,7 +2,7 @@
<!-- <div class='plugin_version'></div> -->
<div class="bt-w-main">
<div class="bt-w-menu">
<p class="bgw" onclick="orPluginService('apache',$('.plugin_version').attr('version'));">服务</p>
<p class="bgw" onclick="httpPluginService('apache',$('.plugin_version').attr('version'));">服务</p>
<p onclick="pluginInitD('apache', $('.plugin_version').attr('version'));">自启动</p>
<p onclick="pluginConfig('apache');">配置修改</p>
<p onclick="getOpStatus();">负载状态</p>
@@ -18,7 +18,7 @@
</div>
<script type="text/javascript">
$.getScript( "/plugins/file?name=apache&f=js/apache.js", function(){
orPluginService('apache');
$.getScript( "/plugins/file?name=apache&f=js/httpd.js", function(){
httpPluginService('apache');
});
</script>
+3 -2
View File
@@ -213,8 +213,9 @@ def initDreplace():
def status():
pid_file = getPidFile()
if not os.path.exists(pid_file):
cmd = "ps -ef|grep 'httpd/bin/httpd' |grep -v grep | grep -v python | awk '{print $2}'"
data = mw.execShell(cmd)
if data[0] == '':
return 'stop'
return 'start'
+1
View File
@@ -13,6 +13,7 @@ export PATH
# apt install ncat -y
# nc -u -v www.xx.com 443
# cd /Users/midoks/Desktop/mwdev/server/mdserver-web/plugins/apache && python3 plugins/apache/index.py start
# cd /www/server/mdserver-web && python3 plugins/apache/index.py start
# cd /www/server/mdserver-web && python3 plugins/apache/index.py run_info
+1 -1
View File
@@ -13,7 +13,7 @@ function httpPost(method, args, callback){
},'json');
}
function orPluginService(_name, version){
function httpPluginService(_name, version){
var data = {name:_name, func:'status'}
if ( typeof(version) != 'undefined' ){
data['version'] = version;