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-3756

leeand00's questions

Martin Hope
leeand00
Asked: 2021-05-25 04:21:00 +0800 CST

当我将端口设置为打开时,为什么 ufw 防火墙会阻止我的请求?

  • 0

bareosdir == 192.168.57.1
​​30 sshLandingBay == 192.168.57.1 ​​95 bigPi == 192.168.57.1
​​96

在我的路由器上我跑了:

tcpdump -i eth0 -w -  'port 9102 or port 9103'

当我进行例如从 bareosdir 到 bigPi 的备份时,我得到:

12:07:57.624013 IP bigPi.jalfrezisimmersauce.com.9102 > bareosdir.jalfrezisimmersauce.com.39320: Flags [P.], seq 282:318, ack 1002, win 501, length 36
12:07:57.624166 IP bareosdir.jalfrezisimmersauce.com.39320 > bigPi.jalfrezisimmersauce.com.9102: Flags [P.], seq 1002:1053, ack 318, win 502, length 51
12:07:57.624313 IP bigPi.jalfrezisimmersauce.com.9102 > bareosdir.jalfrezisimmersauce.com.39320: Flags [.], ack 1053, win 501, length 0
12:07:57.624654 IP bigPi.jalfrezisimmersauce.com.55268 > bareosdir.jalfrezisimmersauce.com.9103: Flags [S], seq 3028865621, win 64240, options [mss 1460,sackOK,TS val 3811050966 ecr 0,nop,wscale 7], length 0

当我尝试做一个 on sshLandingBay 时,我得到:

2:01:01.689401 IP bareosdir.jalfrezisimmersauce.com.39410 > sshLandingBay.jalfrezisimmersauce.com.9102: Flags [S], seq 3364306509, win 64240, options [mss 1460,nop,nop,sackOK,nop,wscale 7], length 0

在 sshLandingBay 本身上,我收到以下消息,说明防火墙已阻止请求,因此它正在通过路由器,但不是 sshLandingBay 上的防火墙:

[1470801.998206] [UFW BLOCK] IN=eth0 OUT= MAC=b8:27:eb:58:25:25:00:24:a5:d7:34:9b:08:00:45:00:00:34:79:75:40:00 SRC=192.168.57.130 DST=192.168.57.195 LEN=52 TOS=0x00 PREC=0x00 TTL=63 ID=3
1093 DF PROTO=TCP SPT=39410 DPT=9102 WINDOW=64240 RES=0x00 SYN URGP=0
pi@sshLandingBay:~ $ sudo ufw status
Status: active

然而我的ufw设置如下:

To                         Action      From
--                         ------      ----
22/tcp                     ALLOW       Anywhere
9102                       ALLOW       192.168.57.130

为什么我的本地防火墙会阻止 BareOS 服务器的请求?

networking
  • 1 个回答
  • 654 Views
Martin Hope
leeand00
Asked: 2019-08-10 04:59:40 +0800 CST

traceroute 和 mtr 有什么区别?

  • 4

我正在和某人一起做一个项目,我注意到他们使用的是mtr(My Trace Route) 而不是traceroute,这有什么好处吗?他们为什么要使用其他工具呢?

traceroute
  • 1 个回答
  • 4816 Views
Martin Hope
leeand00
Asked: 2018-08-31 13:43:33 +0800 CST

Awesome WM - 你如何设置一个热键来锁定你的系统?

  • 1

使用 Awesome Window Manager 时,如何设置热键来锁定系统?

我最好使用Win+L以便在需要时锁定屏幕。

window-manager awesome
  • 1 个回答
  • 2708 Views
Martin Hope
leeand00
Asked: 2018-01-03 12:13:04 +0800 CST

在 Ubuntu 中是否有与 Redhat 中的 /var/log/yum.log 等价的东西?[复制]

  • 10
这个问题在这里已经有了答案:
apt-get 的日志在哪里? (4 个回答)
apt-get upgrade 如何真正起作用? (1 个回答)
4年前关闭。

Redhat 有一个日志,您可以在 yum 在您的系统上安装软件包后查看。在 Ubuntu 中是否有等效的日志?

package-management
  • 3 个回答
  • 1154 Views
Martin Hope
leeand00
Asked: 2017-01-03 07:26:47 +0800 CST

Ubuntu 16.04 LTS 是否支持蓝光?

  • 2

我前段时间读到 Ubuntu 不支持刻录蓝光光盘。16.10 现在支持吗?我试过使用 kb3 但它显示一个空白窗口;我也尝试了一些命令行工具无济于事。

16.04
  • 1 个回答
  • 3301 Views
Martin Hope
leeand00
Asked: 2016-12-01 11:25:13 +0800 CST

在 Ubuntu 16.04 LTS 上从 Cannon imageCLASS MF244dw 打印的驱动程序?

  • 3

我无法在 Ubuntu 16.04 LTS 上找到佳能 imageCLASS MF244dw 的驱动程序。我为此找到了一个相当旧的 ppa,但它似乎不起作用我将它添加为存储库并运行 apt-get 后得到以下信息:

W: The repository 'https://launchpad.net/~michael-gruz/+archive/ubuntu/canon xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch https://launchpad.net/~michael-gruz/+archive/ubuntu/canon/dists/xenial/main/binary-amd64/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

另外,我并没有真正在列表中看到打印机。如果我通过 Samba 上具有驱动程序的机器(Windows 机器)共享打印机,是否仍然可以打印?

drivers
  • 1 个回答
  • 2400 Views
Martin Hope
leeand00
Asked: 2016-06-10 01:54:56 +0800 CST

由systemd启动时服务总是绑定到127.0.0.1?

  • 0

我的单位文件:

[Unit]

Description=TW5 Bacula Wiki
After=nginx.service
Requires=nginx.service
[Service]
TimeoutStartSec=5000
ExecStart=/usr/local/bin/tiddlywiki /home/pi/tw5/linux/bacula --server 9094 $:/core/save/all text/plain text/html "" "" %H
User=Tw5
Group=Tw5

[Install]
WantedBy=multi-user.target

当我启动它时,我得到以下信息:

Jun  8 21:16:57 wiki tiddlywiki[1037]: Serving on 127.0.0.1:9094

相反,我希望它将绑定到 DNS 名称 ( %H) ip 的 ip,但这也不起作用。

我也在命令中尝试了 0.0.0.0 ,但没有任何运气。

我还将 它用作运行服务器的命令的参考。

systemd
  • 1 个回答
  • 429 Views
Martin Hope
leeand00
Asked: 2015-06-04 13:01:19 +0800 CST

您是否需要具有虚拟化功能的处理器才能在 Snappy Ubuntu Core 上运行 Docker?

  • 1

据我了解,Linux Container 被称为轻量级虚拟化;虚拟化,无需为每项运行的服务安装额外的操作系统。Docker 使用 Linux 容器,并且 Docker 有可能在 Snappy Ubuntu Core 上运行。

上面提到的堆栈是否需要其运行的处理器具有 VT-X 或其他虚拟化技术?或者它只是一种在 Linux 上运行服务的重组方式,不需要具有虚拟化功能的处理器?

docker
  • 1 个回答
  • 1297 Views
Martin Hope
leeand00
Asked: 2015-05-07 21:24:13 +0800 CST

在 Ubuntu Core 的 Docker 容器中测试 nginx?

  • 0
  1. 遵循在 KVM 上设置 Ubuntu Core
    • 它向您展示了如何启动虚拟机并将端口转发回您的主机。
  2. 跟随Snappy 之旅
    • 它向您展示了如何在 Ubuntu Core 上安装 Docker
  3. 安装最新的 nginx 镜像
  4. 查看管理容器并以交互方式让 nginx 在我的容器中运行

现在容器在随机端口上运行 nginx。

回到 Ubuntu Core,我尝试安装 wget 或 curl 以从我的容器中的 nginx 返回一个页面,但是 snappy 搜索中没有列出任何一个;我还能怎么测试这个?

nginx
  • 1 个回答
  • 1719 Views
Martin Hope
leeand00
Asked: 2014-05-06 12:22:00 +0800 CST

为 postgresql 编译 mysql_fdw?

  • 0

我正在尝试在 Ubuntu 12.04 LTS 上为 Postgresql 9.1+ 编译 MySQL Foreign Data Wrapper并且在让它工作时遇到了一些麻烦。

到目前为止,我已经设法使用 git从 github 下载源代码,并根据说明将以下内容添加到我的/etc/profile路径中,希望这个东西能够编译:

# ^ The rest of the file ^
# POSTGRESQL Environment Vars
export PGDATA="/usr/local/pgsql/data"
export PGHOST="localhost"
export PGPORT="5432"
export PGLOG="/var/log/pgsql"
export PATH=$PATH:/usr/lib/postgresql/9.1/bin:/opt/lampp/bin

然后我根据我运行的文档

$ make USE_PGXS=1
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -fPIC -DLINUX_OOM_ADJ=0 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -fpic -I/usr/include/mysql -I. -I. -I/usr/include/postgresql/9.1/server -I/usr/include/postgresql/internal -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.5  -c -o mysql_fdw.o mysql_fdw.c
mysql_fdw.c: In function ‘mysqlPlanForeignScan’:
mysql_fdw.c:467:8: warning: ‘rows’ may be used uninitialized in this function [-Wuninitialized]
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -fPIC -DLINUX_OOM_ADJ=0 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -fpic -shared -o mysql_fdw.so mysql_fdw.o -L/usr/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -L/usr/lib/i386-linux-gnu  -Wl,--as-needed  -L/usr/lib/i386-linux-gnu -lmysqlclient -lpthread -lz -lm -lrt -ldl 

除了警告之外,我认为它编译正常......接下来我尝试安装它,但我收到一些关于一些丢失文件的错误......

$ sudo make USE_PGPX=1 install
Makefile:35: ../../src/Makefile.global: No such file or directory
Makefile:36: /contrib/contrib-global.mk: No such file or directory
make: *** No rule to make target `/contrib/contrib-global.mk'.  Stop.

我是否需要编译所有 Postgres 并将此扩展包含在源代码中?因为来源似乎指的是我所在目录之上的目录。

compiling
  • 1 个回答
  • 1260 Views

Sidebar

Stats

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

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

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

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve