“请参阅您的服务器从一个终端的操作日志”的版本间的差异

来自Chinese Ikoula Wiki
Jump to navigation Jump to search
第1行: 第1行:
 +
<span data-link_translate_en_title="See action log of your server from a terminal"  data-link_translate_en_url="See+action+log+of+your+server+from+a+terminal"></span>[[:en:See action log of your server from a terminal]][[en:See action log of your server from a terminal]]
 
<span data-link_translate_fr_title="Consulter l'action log de votre serveur depuis un terminal"  data-link_translate_fr_url="Consulter_l%27action_log_de_votre_serveur_depuis_un_terminal"></span>[[:fr:Consulter l'action log de votre serveur depuis un terminal]][[fr:Consulter l'action log de votre serveur depuis un terminal]]
 
<span data-link_translate_fr_title="Consulter l'action log de votre serveur depuis un terminal"  data-link_translate_fr_url="Consulter_l%27action_log_de_votre_serveur_depuis_un_terminal"></span>[[:fr:Consulter l'action log de votre serveur depuis un terminal]][[fr:Consulter l'action log de votre serveur depuis un terminal]]
 
<br />
 
<br />

2016年2月21日 (日) 12:06的版本

en:See action log of your server from a terminal fr:Consulter l'action log de votre serveur depuis un terminal

这篇文章是从由软件进行自动翻译。你可以看到这篇文章的源代码

它可能是有趣的查看日志操作的 Plesk 以来如 SSH 远程访问,而不必从管理界面的 Plesk 下载。

各种元素组件从 Plesk 数据库检索操作日志。 它将需要连接到此数据库运行适当的查询 (因此,该注意的是尽管事实上,简单的选择 ).

将允许您查看从一个终端操作日志的查询是下一步 :

mysql -uadmin -p`cat /etc/psa/.psa.shadow` -Dpsa -sNe"SELECT a.date, a.ip_address, a.user, ac.descr, lc.component, lc.old_value, lc.new_value FROM (log_actions a, actions ac) LEFT JOIN log_components lc ON (a.id=lc.action_id) WHERE (ac.id=a.action_id)"

当然,你可以适应您的需求 (通过 MySQL 函数 [之间] 例如 ) 或者直接使用工具 grep.

例如,下面的命令,将允许你列表连接到管理界面的 Plesk 通过实用程序 grep :

mysql -uadmin -p`cat /etc/psa/.psa.shadow` -Dpsa -sNe"SELECT a.date, a.ip_address, a.user, ac.descr, lc.component, lc.old_value, lc.new_value FROM (log_actions a, actions ac) LEFT JOIN log_components lc ON (a.id=lc.action_id) WHERE (ac.id=a.action_id)" | grep "CP User Login"



您未被允许发表评论。