diff --git a/plugins/memcached/index.py b/plugins/memcached/index.py index f6bbeabf3..4e8c857ba 100755 --- a/plugins/memcached/index.py +++ b/plugins/memcached/index.py @@ -180,8 +180,7 @@ def saveConf(): def initdStatus(): if not app_debug: - os_name = public.getOs() - if os_name == 'darwin': + if public.isAppleSystem(): return "Apple Computer does not support" initd_bin = getInitDFile() if os.path.exists(initd_bin): @@ -192,8 +191,7 @@ def initdStatus(): def initdInstall(): import shutil if not app_debug: - os_name = public.getOs() - if os_name == 'darwin': + if public.isAppleSystem(): return "Apple Computer does not support" mem_bin = initDreplace() @@ -205,8 +203,7 @@ def initdInstall(): def initdUinstall(): if not app_debug: - os_name = public.getOs() - if os_name == 'darwin': + if public.isAppleSystem(): return "Apple Computer does not support" initd_bin = getInitDFile() os.remove(initd_bin) diff --git a/plugins/sphinx/conf/sphinx.conf b/plugins/sphinx/conf/sphinx.conf index 816193a9d..6ee7605d6 100755 --- a/plugins/sphinx/conf/sphinx.conf +++ b/plugins/sphinx/conf/sphinx.conf @@ -11,14 +11,14 @@ searchd { listen = 9312 listen = 9306:mysql41 - log = {$SERVER_PATH}/index/searchd.log - query_log = {$SERVER_PATH}/index/query.log + log = {$SERVER_APP}/index/searchd.log + query_log = {$SERVER_APP}/index/query.log read_timeout = 5 max_children = 0 - pid_file = {$SERVER_PATH}/index/searchd.pid + pid_file = {$SERVER_APP}/index/searchd.pid seamless_rotate = 1 preopen_indexes = 1 unlink_old = 1 #workers = threads # for RT to work - binlog_path = {$SERVER_PATH}/index/binlog/ + binlog_path = {$SERVER_APP}/index } diff --git a/plugins/sphinx/index.html b/plugins/sphinx/index.html index 4af4424b3..2c1b3341b 100755 --- a/plugins/sphinx/index.html +++ b/plugins/sphinx/index.html @@ -4,7 +4,8 @@
服务
自启动
配置修改
-日志
+运行日志
+查询日志