AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-88439

I'll-Be-Back's questions

Martin Hope
I'll-Be-Back
Asked: 2016-08-14 11:21:05 +0800 CST

获取操作/命令历史日志?

  • 0

服务器管理网站控制服务器。例如,我按下保存按钮,然后将更新 Linux 服务器上的配置。它登录到服务器,然后更新配置文件。

验证日志示例:

Aug 13 20:07:19 ladev sshd[14141]: pam_unix(sshd:session): session opened for user root by (uid=0)
Aug 13 20:07:19 ladev systemd: pam_unix(systemd-user:session): session opened for user root by (uid=0)
Aug 13 20:07:19 ladev systemd-logind[1426]: New session 235 of user root.
Aug 13 20:07:19 ladev sshd[14141]: Received disconnect from 10x.236.2xx.xxx port 50291:11: disconnected by user
Aug 13 20:07:19 ladev sshd[14141]: Disconnected from 10x.236.2xx.xxx port 50291
Aug 13 20:07:19 ladev sshd[14141]: pam_unix(sshd:session): session closed for user root
Aug 13 20:07:19 ladev systemd-logind[1426]: Removed session 235.
Aug 13 20:07:20 ladev sshd[14186]: Accepted publickey for root from 10x.236.2xx.xxx port 50292 ssh2: RSA SHA256:xxxxxxxxxxxxxxxxxxxxx

我如何找出它在做什么来更新文件以及它正在使用什么命令?

还有一种方法可以找出它使用的是什么 SSH 客户端?

bash_history它在andhistory命令中不可用

编辑:我不拥有的服务器管理网站不在同一台服务器上。

linux ssh audit
  • 1 个回答
  • 59 Views
Martin Hope
I'll-Be-Back
Asked: 2015-08-30 12:46:25 +0800 CST

XenServer 6.5 上的 CentOS 7

  • 3

我在尝试让 CentOS 7 图形安装程序在 XenServer 6.5(服务包 1)上工作时遇到问题。

我使用了 CentOS 7 模板。

图形安装程序不起作用,只有光标出现空白屏幕。

我尝试将 RAM 增加到 2GB,但仍然没有运气。

有谁知道如何解决这个问题?

centos
  • 2 个回答
  • 6097 Views
Martin Hope
I'll-Be-Back
Asked: 2013-09-30 10:00:31 +0800 CST

GPO:在开始菜单的“所有程序”中添加特定项目?

  • 1

使用 Windows Server 2012 通过 GPO 禁用“所有程序”中的所有项目

我已将“从开始菜单中删除常用程序组”设置为启用。

“所有程序”中的所有内容现在都是空的,如何在“所有程序”中添加特定项目,例如 Internet Explorer、记事本和 Microsoft Word?

windows-server-2008
  • 3 个回答
  • 16047 Views
Martin Hope
I'll-Be-Back
Asked: 2013-09-24 03:52:47 +0800 CST

通过 Squid 过滤网站

  • 1

我想安装 Squid 来阻止所有网站,只允许几个网站(白名单)。每个部门会有不同的规定。

例如在销售部门 - 所有网站都将被阻止,只允许少数白名单网站。在客户服务部门,所有网站都将打开,但 facebook 和 youtube 将被阻止。

如果我使用 Squid,在这种情况下是否可以过滤每个部门?我已经完成了我计划设置的网络设计。我可以在 ESXi 服务器上的 VM3 上安装 Squid 或 pfsense 以供 squid 使用。

在此处输入图像描述

PS:我的交换机上没有VLAN

linux
  • 2 个回答
  • 275 Views
Martin Hope
I'll-Be-Back
Asked: 2013-09-06 08:31:34 +0800 CST

FTP:访问 homedir 和 /var/www

  • 0

我希望 FTP 用户可以访问 homedir 和/var/www目录

我已经vsftpd通过yum命令安装并允许他们访问 homedir。

要仅访问主目录,我已设置chroot_local_user为 YES/etc/vsftpd/vsftpd.conf

我已经对其进行了测试并且工作正常,如何允许用户也可以访问/var/www并包括写权限?

centos
  • 1 个回答
  • 2432 Views
Martin Hope
I'll-Be-Back
Asked: 2013-03-18 03:29:38 +0800 CST

Cron - 不是每 10 分钟执行一次命令

  • 1

我不明白为什么 cron 不是真的每 10 分钟执行一次命令。

在crontab -e我添加了:

*/10 * * * * /var/www/myproject/recording/batch.pl

我可以在 cron 日志中看到它每 10 分钟运行一次:

Mar 17 10:50:01 host crond[26335]: (root) CMD (/var/www/myproject/recording/batch.pl)
Mar 17 11:00:01 host crond[26357]: (root) CMD (/var/www/myproject/recording/batch.pl)
Mar 17 11:10:01 host crond[26418]: (root) CMD (/var/www/myproject/recording/batch.pl)
Mar 17 11:20:01 host crond[26657]: (root) CMD (/var/www/myproject/recording/batch.pl)

但它并没有真正执行命令。

当我在 Linux 控制台中手动执行该命令时,它工作正常。

linux
  • 3 个回答
  • 137 Views
Martin Hope
I'll-Be-Back
Asked: 2013-02-06 09:52:25 +0800 CST

iptables - 阻止 Eth1 上的传入并允许来自 eth0 的所有传入

  • 5

我有点坚持使用 iptables 来处理两个以太网端口。

用于 LAN 的 eth0 端口(192.168.1.50 私有 IP)。

eth1 端口通过电缆调制解调器(80.0.xxx.xxx 公共 IP)连接到互联网。

eth0      Link encap:Ethernet  HWaddr 00:19:99:C1:86:BB
          inet addr:192.168.1.50  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:137532 errors:0 dropped:0 overruns:0 frame:0
          TX packets:55658 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:99968969 (95.3 MiB)  TX bytes:10403525 (9.9 MiB)
          Interrupt:50 Memory:fe700000-fe720000

eth1      Link encap:Ethernet  HWaddr 00:19:99:C1:61:3B
          inet addr:80.0.xxx.xxx  Bcast:255.255.255.255  Mask:255.255.252.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:144558 errors:0 dropped:0 overruns:0 frame:0
          TX packets:70347 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:34500131 (32.9 MiB)  TX bytes:27893843 (26.6 MiB)
          Interrupt:177 Memory:fe600000-fe620000

我想阻止所有传入路由,eth1但只允许端口 21。这样外部 IP 就无法访问我们的 Web 服务器、ftp 服务器等。只允许端口 21 进行 SSH 访问。Ping 也应该工作。

在本地网络 (eth0) 上,任何人都应该能够访问任何内容,但只能阻止本地 ip 的 192.168.1.20 和 192.168.1.30 访问 192.168.1.50 服务器。

如何使用 iptables 完成?

linux
  • 1 个回答
  • 43829 Views
Martin Hope
I'll-Be-Back
Asked: 2013-01-31 04:58:27 +0800 CST

使用两个 ISP 设置网络

  • 1

目前,我有一个包含 1 个 ISP、路由器/调制解调器、技嘉交换机和服务器的网络。

所有客户端 PC 都自动从 DHCP 服务器分配 IP Router/Modem A。

Server A有一个固定的 IP(例如:192.168.1.50),安装了 Linux - 用于 Web 服务器、Asterisk 和备份使用。

我需要一个带有独立调制解调器的新的第二个 ISP,但我希望Server B(例如:192.168.1.60)ISP B仅使用网络。例如,如果我从Server B- 下载任何东西或使用 SIP(​​Asterisk),它将使用ISP B连接而不是其他 ISP 连接。此外,任何客户端 PC 都应该能够访问Server A(192.168.1.50) 或Server B(192.168.1.60)

怎么做到呢?请参阅下面的示例设计,我认为它可能有用吗?

服务器 B 有两个以太网端口(一个用于调制解调器/路由器,另一个连接交换机)

在此处输入图像描述

linux
  • 1 个回答
  • 815 Views
Martin Hope
I'll-Be-Back
Asked: 2012-11-07 05:07:45 +0800 CST

如何在 CentOS 6.3 上安装 libboost-devel

  • 17

如何在 CentOS 6.3 上安装 libboost-devel?

我尝试了以下命令:

yum install libboost-devel

输出:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.ellogroup.com
 * extras: mirror.ellogroup.com
 * updates: mirror.ellogroup.com
Setting up Install Process
No package libboost-devel available.
Error: Nothing to do
linux
  • 1 个回答
  • 43611 Views
Martin Hope
I'll-Be-Back
Asked: 2012-07-14 14:44:29 +0800 CST

CMake 错误 - 尝试安装 chromaprint

  • 0

我正在尝试安装 chromaprint,但出现 CMake 错误。

我不知道如何解决它。

错误:

root@matrix [~/chromaprint-0.6]# cmake -DWITH_FFTW3=ON .
-- Using FFTW3 for FFT calculations
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
FFMPEG_LIBAVCODEC_INCLUDE_DIRS
   used as include directory in directory /root/chromaprint-0.6/examples
FFMPEG_LIBAVCODEC_LIBRARIES
    linked by target "fpcalc" in directory /root/chromaprint-0.6/examples
FFMPEG_LIBAVFORMAT_INCLUDE_DIRS
   used as include directory in directory /root/chromaprint-0.6/examples
FFMPEG_LIBAVFORMAT_LIBRARIES
    linked by target "fpcalc" in directory /root/chromaprint-0.6/examples
FFMPEG_LIBAVUTIL_INCLUDE_DIRS
   used as include directory in directory /root/chromaprint-0.6/examples
FFMPEG_LIBAVUTIL_LIBRARIES
    linked by target "fpcalc" in directory /root/chromaprint-0.6/examples

-- Configuring incomplete, errors occurred!
root@matrix [~/chromaprint-0.6]#
linux centos
  • 1 个回答
  • 951 Views
Martin Hope
I'll-Be-Back
Asked: 2012-07-14 08:34:34 +0800 CST

找不到“GLIBC_2.7”

  • 1

我在 Linux 上安装了 fpcalc,当我执行以下命令时:

./fpcalc

我收到一条错误消息:

./fpcalc: /lib/libc.so.6: version `GLIBC_2.7' not found (required by ./fpcalc)

我试过谷歌搜索,但找不到解决此问题的直接答案

我正在运行 CentOS 5.8 版(最终版)并安装了 glibc-2.5-81.el5_8.2

linux centos centos5 glibc
  • 1 个回答
  • 2877 Views
Martin Hope
I'll-Be-Back
Asked: 2012-07-04 03:14:00 +0800 CST

通过 mv date 删除所有文件?

  • 1

每天都会创建新的音频文件dir1。

有时我将 ( mv) 一些文件从移动dir1到dir2

我想删除dir26 月 20 日之前移动的所有文件

这可能吗?

linux centos filesystems mv
  • 2 个回答
  • 156 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve