小编Abh*_*rma的帖子

无法在 Linux 中停止 Clamav 守护进程

我试图在 Linux 中停止 Clamav 服务,但我无法做到这一点。我已经在一个单独的目录中安装了 Clamav。

运行以下命令时:

$ systemctl stop clamav-daemon
Run Code Online (Sandbox Code Playgroud)

我收到此错误消息:

警告:停止 clamav-daemon.service,但它仍然可以被激活: clamav-daemon.socket

运行时:

$ systemctl status clamav-daemon
Run Code Online (Sandbox Code Playgroud)

我得到:

 clamav-daemon.service - Clam AntiVirus userspace daemon
   Loaded: loaded (/usr/lib/systemd/system/clamav-daemon.service; disabled; vendor preset: disabled)
   Active: active (running) since Wed 2020-04-29 13:23:33 IST; 7s ago
     Docs: man:clamd(8)
           man:clamd.conf(5)
           https://www.clamav.net/documents/
 Main PID: 32213 (clamd)
    Tasks: 1
   CGroup: /system.slice/clamav-daemon.service
           ??32213 /usr/local/sbin/clamd --foreground=true
Run Code Online (Sandbox Code Playgroud)

任何帮助将不胜感激。谢谢。

clam clamav

4
推荐指数
1
解决办法
3700
查看次数

在 Tkinter 的文本小部件中添加文本链接

我正在使用 Tkinter 和 bs4 在 python 中创建一个歌曲通知程序。我已经从网站中提取了歌曲及其相应的网址。我使用文本小部件来存储歌曲并将其网址作为字典中的键值。

现在我想添加歌曲名称的链接(存储在文本小部件中),以便当我单击特定歌曲时,它的网址会在 chrome 中打开。

这是代码片段:

from tkinter import *
import webbrowser
from bollywood_top_50 import bollywood_songs_list , bollywood_songs_dict
from international_top_50 import international_songs_list


b_songs_list  = bollywood_songs_list()
b_songs_dict =  bollywood_songs_dict()
i_songs_list = international_songs_list()

root = Tk()
S = Scrollbar(root)
T = Text(root, height=20, width=30,cursor="hand2")
S.pack(side=RIGHT, fill=Y)
T.pack(side=LEFT, fill=Y)
S.config(command=T.yview)
T.config(yscrollcommand=S.set)    


def callback_a():
    T.delete(1.0,END)
    for songs in b_songs_list:
       T.insert(END, songs + '\n')   

def callback_b():
    T.delete(1.0,END)
    for songs in i_songs_list:
        T.insert(END, songs + '\n')        

bollywood_button = Button(root,text="Bollywood-Top-50", command=callback_a)
bollywood_button.pack() …
Run Code Online (Sandbox Code Playgroud)

tkinter beautifulsoup python-3.x

2
推荐指数
1
解决办法
3749
查看次数

标签 统计

beautifulsoup ×1

clam ×1

clamav ×1

python-3.x ×1

tkinter ×1