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

Uwe Pfeifer's questions

Martin Hope
Uwe Pfeifer
Asked: 2019-02-19 10:40:57 +0800 CST

Ubuntu 18.10 以太网 LAN 无法连接

  • 0

我的 LAN 连接未连接。我有一个新的路由器。因为那个 Ubuntu 不会连接。有任何想法吗?在 Windows 10 上,LAN 连接有效。IPv6 似乎工作。只是不是 IPv4。

编辑:这是德国电信的 Smart 3。一切都适用于旧路由器。我无法附上图片,所以已将其上传到我的下一个大声。链接:屏幕图片 我也尝试重新启动,重新安装后我仍然遇到同样的问题。另外我认为问题是由 dhcp 违规引起的。

编辑#2:它通过以太网电缆连接。它在 Windows 下工作。一切都正确连接。路由器管理界面的阻止列表中没有任何内容。我什至无法通过 IPv4 访问 LAN。所以问题是通过 DHCP 获取 LAN IPv4。

编辑#3:网卡 PC 使用以太网 LAN 电缆连接到路由器 LAN。路由器使用普通电话线连接到外部。这是一个IP电话路由器。好吧,所有的 LED 都是白色的(没问题)。我的笔记本电脑 (wlan) 可以访问互联网并为 LAN 获取 IPv4。ifconfig 默认情况下没有安装,我无法访问互联网,所以我不能给你命令的输出。我只能说,IPv6 有效,IPv4 无效。

编辑#4:我无法向您发送标签屏幕截图。虽然一切都是默认和自动的。我无法 ping 8.8.8.8 - 网络无法访问。这里是命令的屏幕截图:第二个屏幕截图

编辑#5:这里是截图。我使用手机应用程序在这里交谈。无法在设备之间交换剪贴板。第三张截图我在某处读到它试图获取 IP 但它违反了某些协议。与 nxdomain 或其他东西有关。

编辑:调试日志不存在。这是来自 Windows 的屏幕截图。截屏

lan ethernet 18.10
  • 1 个回答
  • 591 Views
Martin Hope
Uwe Pfeifer
Asked: 2018-03-12 00:36:56 +0800 CST

OpenVPN & Network-Manager-OpenVPN & 连接互联网 ipv4

  • 1

我正在尝试通过我的 vpn 路由互联网流量。我已经使用教程设置了所有内容。现在,我听说 OpenVPN 只能处理 ipv4 或 ipv6。所以我想坚持使用ipv4。我在我的电脑上的网络管理器中禁用了 ipv6,但现在,ipv6 网站仍然通过 ipv6 发送而没有 VPN。我怎样才能防止这种情况?

谢谢!!:)

network-manager openvpn 17.10
  • 1 个回答
  • 1092 Views
Martin Hope
Uwe Pfeifer
Asked: 2017-07-14 01:33:08 +0800 CST

GitLab + Ubuntu 16.04 + Plesk Onyx

  • 0

我安装了 GitLab Omnibus 包。我现在想使用 Plesk 的 nginx 而不是打包的 nginx。我已将配置设置为不使用捆绑的 nginx。

现在我想使用 Plesk Onyx 的 nginx 来处理对 gitlab 的请求。如何配置 ngingx plesk 来执行此操作(Vhost?)?

我添加了以下内容:

## GitLab
##
## Modified from nginx http version
## Modified from http://blog.phusion.nl/2012/04/21/tutorial-setting-up-gitlab-on-debian-6/
## Modified from https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html
##
## Lines starting with two hashes (##) are comments with information.
## Lines starting with one hash (#) are configuration parameters that can be uncommented.
##
##################################
##        CONTRIBUTING          ##
##################################
##
## If you change this file in a Merge Request, please also create
## a Merge Request on https://gitlab.com/gitlab-org/omnibus-gitlab/merge_requests
##
###################################
##         configuration         ##
###################################
##
## See installation.md#using-https for additional HTTPS configuration details.

upstream gitlab-workhorse {
  server unix:/var/opt/gitlab/gitlab-workhorse/socket fail_timeout=0;
}

## Redirects all HTTP traffic to the HTTPS host
server {
  ## Either remove "default_server" from the listen line below,
  ## or delete the /etc/nginx/sites-enabled/default file. This will cause gitlab
  ## to be served if you visit any address that your server responds to, eg.
  ## the ip address of the server (http://x.x.x.x/)
  listen 0.0.0.0:80;
  listen [::]:80 ipv6only=on;
  server_name gitlab.nextgamers.eu; ## Replace this with something like gitlab.example.com
  server_tokens off; ## Don't show the nginx version number, a security best practice
  return 301 https://$http_host$request_uri;
  access_log  /var/log/nginx/gitlab_access.log;
  error_log   /var/log/nginx/gitlab_error.log;
}

## HTTPS host
server {
  listen 0.0.0.0:443 ssl;
  listen [::]:443 ipv6only=on ssl;
  server_name gitlab.nextgamers.eu; ## Replace this with something like gitlab.example.com
  server_tokens off; ## Don't show the nginx version number, a security best practice
  root /opt/gitlab/embedded/service/gitlab-rails/public;

  ## Strong SSL Security
  ## https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html & https://cipherli.st/
  ssl on;
  ssl_certificate /etc/nginx/ssl/gitlab.crt;
  ssl_certificate_key /etc/nginx/ssl/gitlab.key;

  # GitLab needs backwards compatible ciphers to retain compatibility with Java IDEs
  ssl_ciphers "ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4";
  ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  ssl_prefer_server_ciphers on;
  ssl_session_cache shared:SSL:10m;
  ssl_session_timeout 5m;

  ## See app/controllers/application_controller.rb for headers set

  ## [Optional] Enable HTTP Strict Transport Security
  ## HSTS is a feature improving protection against MITM attacks
  ## For more information see: https://www.nginx.com/blog/http-strict-transport-security-hsts-and-nginx/
  # add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";

  ## [Optional] If your certficate has OCSP, enable OCSP stapling to reduce the overhead and latency of running SSL.
  ## Replace with your ssl_trusted_certificate. For more info see:
  ## - https://medium.com/devops-programming/4445f4862461
  ## - https://www.ruby-forum.com/topic/4419319
  ## - https://www.digitalocean.com/community/tutorials/how-to-configure-ocsp-stapling-on-apache-and-nginx
  # ssl_stapling on;
  # ssl_stapling_verify on;
  # ssl_trusted_certificate /etc/nginx/ssl/stapling.trusted.crt;
  # resolver 208.67.222.222 208.67.222.220 valid=300s; # Can change to your DNS resolver if desired
  # resolver_timeout 5s;

  ## [Optional] Generate a stronger DHE parameter:
  ##   sudo openssl dhparam -out /etc/ssl/certs/dhparam.pem 4096
  ##
  # ssl_dhparam /etc/ssl/certs/dhparam.pem;

  ## Individual nginx logs for this GitLab vhost
  access_log  /var/log/nginx/gitlab_access.log;
  error_log   /var/log/nginx/gitlab_error.log;

  location / {
    client_max_body_size 0;
    gzip off;

    ## https://github.com/gitlabhq/gitlabhq/issues/694
    ## Some requests take more than 30 seconds.
    proxy_read_timeout      300;
    proxy_connect_timeout   300;
    proxy_redirect          off;

    proxy_http_version 1.1;

    proxy_set_header    Host                $http_host;
    proxy_set_header    X-Real-IP           $remote_addr;
    proxy_set_header    X-Forwarded-Ssl     on;
    proxy_set_header    X-Forwarded-For     $proxy_add_x_forwarded_for;
    proxy_set_header    X-Forwarded-Proto   $scheme;
    proxy_pass http://gitlab-workhorse;
  }
}

gitlab.conf 在 nginx 的 conf.d 目录中。nginx 启动失败,错误为:

root@baby /etc/nginx/conf.d # systemctl status nginx.service
● nginx.service - Startup script for nginx service
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2017-07-13 11:46:25 CEST; 4min 21s ago
  Process: 7688 ExecStop=/bin/kill -s QUIT $MAINPID (code=exited, status=0/SUCCESS)
  Process: 24657 ExecReload=/bin/kill -s HUP $MAINPID (code=exited, status=0/SUCCESS)
  Process: 24654 ExecReload=/usr/sbin/nginx -t (code=exited, status=0/SUCCESS)
  Process: 24651 ExecReload=/usr/bin/test $NGINX_ENABLED = yes (code=exited, status=0/SUCCESS)
  Process: 7708 ExecStart=/usr/sbin/nginx (code=exited, status=1/FAILURE)
  Process: 7700 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=0/SUCCESS)
  Process: 7697 ExecStartPre=/usr/bin/test $NGINX_ENABLED = yes (code=exited, status=0/SUCCESS)
 Main PID: 5578 (code=exited, status=0/SUCCESS)

Jul 13 11:46:24 baby.freakyonline.de nginx[7708]: nginx: [emerg] bind() to [::]:443 failed (98: Address already in use)
Jul 13 11:46:24 baby.freakyonline.de nginx[7708]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Jul 13 11:46:24 baby.freakyonline.de nginx[7708]: nginx: [emerg] bind() to [::]:443 failed (98: Address already in use)
Jul 13 11:46:25 baby.freakyonline.de nginx[7708]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Jul 13 11:46:25 baby.freakyonline.de nginx[7708]: nginx: [emerg] bind() to [::]:443 failed (98: Address already in use)
Jul 13 11:46:25 baby.freakyonline.de nginx[7708]: nginx: [emerg] still could not bind()
Jul 13 11:46:25 baby.freakyonline.de systemd[1]: nginx.service: Control process exited, code=exited status=1
Jul 13 11:46:25 baby.freakyonline.de systemd[1]: Failed to start Startup script for nginx service.
Jul 13 11:46:25 baby.freakyonline.de systemd[1]: nginx.service: Unit entered failed state.
Jul 13 11:46:25 baby.freakyonline.de systemd[1]: nginx.service: Failed with result 'exit-code'.
root@baby /etc/nginx/conf.d #

即使我已经删除了监听选项的 default_server 部分。

如果有人可以帮助我,我将不胜感激。

非常感谢!怪异的。

server
  • 1 个回答
  • 1716 Views
Martin Hope
Uwe Pfeifer
Asked: 2017-05-30 11:47:33 +0800 CST

Ubuntu 17.04 启动 / 在 SSD 上但速度慢

  • 0

我有以下输出,我的 ubuntu 启动速度非常慢。启动需要大约 2-3 分钟,而 Windows 只需要 15 秒。这里是 journalctl 的输出:http: //paste.ubuntu.com/24706296/

如果有人可以帮助我,那就太好了,因为我真的很想快速启动到 ubuntu。

我在 SSD (/) 上有所有东西,但在硬盘上只有 /var 和 /home。

编辑:

须藤 blkid:

/dev/sda1: LABEL="Wiederherstellung" UUID="1E5EB9035EB8D4AD" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="daad9650-8cde-491d-80db-7dda8e1874c0"
/dev/sda2: UUID="56B9-5488" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="419f5006-cb88-4fcc-9b5e-39ca6d657edb"
/dev/sda3: PARTLABEL="Microsoft reserved partition" PARTUUID="e924079c-0c0c-4157-b82d-85f0a8ef5e8c"
/dev/sda4: UUID="6862CAA762CA78F8" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="4c2eb33b-8ea1-4c7e-9c72-25c490d407ce"
/dev/sda5: UUID="76A07C5BA07C2431" TYPE="ntfs" PARTUUID="887bbacf-c0e9-44b0-bf46-1385b114068b"
/dev/sda6: UUID="c89b4926-af5a-416a-b61a-006aaa34a3cc" TYPE="ext4" PARTUUID="abab0c8d-8d6e-4529-8d94-1a88d0900861"
/dev/sda7: UUID="69152b87-29d1-410d-a49b-b31e1e9885f4" TYPE="swap" PARTUUID="7d94acf0-a66c-44d4-ba94-d3cd4ca6a31b"
/dev/sdb1: PARTLABEL="Microsoft reserved partition" PARTUUID="bdc2d24e-e974-441f-b190-b8b285579f87"
/dev/sdb2: LABEL="Volume" UUID="1A4A64574A643225" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="ec522179-fc5b-4406-a029-1036e2e1df7c"
/dev/sdb3: UUID="da267417-9a48-45a2-a3e2-2bc62163003a" TYPE="ext4" PARTUUID="8c1e23df-5f97-44f8-a344-3fb713b13bf6"
/dev/sdb4: UUID="f2362bd0-5a3d-4e0f-b915-d7ab299d0be9" TYPE="ext4" PARTUUID="c85406d4-71fc-46f6-a9c4-a4f76b2cc185"

猫 /etc/fstab:

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda6 during installation
UUID=c89b4926-af5a-416a-b61a-006aaa34a3cc /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda2 during installation
UUID=56B9-5488  /boot/efi       vfat    umask=0077      0       1
# /home was on /dev/sdb4 during installation
UUID=f2362bd0-5a3d-4e0f-b915-d7ab299d0be9 /home           ext4    defaults        0       2
# /var was on /dev/sdb3 during installation
UUID=da267417-9a48-45a2-a3e2-2bc62163003a /var            ext4    defaults        0       2
/swapfile                                 none            swap    sw              0       0
/dev/mapper/cryptswap1 none swap sw 0 0

免费-h:

              total        used        free      shared  buff/cache   available
Mem:           7,7G        2,8G        121M         92M        4,8G        4,5G
Swap:          7,8G          0B        7,8G

uwe@loopy-ubuntu:~$ swapon

NAME      TYPE      SIZE USED PRIO
/dev/sda7 partition 7,8G   0B   -1

uwe@loopy-ubuntu:~$ ls -al /

total 1541232
drwxr-xr-x  24 root root       4096 Mai 29 08:00 .
drwxr-xr-x  24 root root       4096 Mai 29 08:00 ..
drwxr-xr-x   2 root root       4096 Mai 29 08:00 bin
drwxr-xr-x   4 root root       4096 Mai 29 00:07 boot
drwxr-xr-x   2 root root       4096 Mai 28 23:02 cdrom
drwxr-xr-x  20 root root       4480 Mai 30 11:52 dev
drwxr-xr-x 139 root root      12288 Mai 29 21:38 etc
drwxr-xr-x   5 root root       4096 Mai 28 23:02 home
lrwxrwxrwx   1 root root         33 Mai 29 00:04 initrd.img -> boot/initrd.img-4.10.0-22-generic
drwxr-xr-x  25 root root       4096 Mai 29 00:24 lib
drwxr-xr-x   2 root root       4096 Mai 29 00:06 lib32
drwxr-xr-x   2 root root       4096 Apr 12 05:06 lib64
drwx------   2 root root      16384 Mai 28 22:51 lost+found
drwxr-xr-x   3 root root       4096 Mai 29 08:00 media
drwxr-xr-x   2 root root       4096 Apr 12 05:06 mnt
dr-xr-xr-x 325 root root          0 Mai 30 11:50 proc
drwx------   3 root root       4096 Apr 12 05:17 root
drwxr-xr-x  30 root root        940 Mai 30 11:56 run
drwxr-xr-x   2 root root      12288 Mai 29 00:06 sbin
drwxr-xr-x   2 root root       4096 Apr  6 10:32 snap
drwxr-xr-x   2 root root       4096 Apr 12 05:06 srv
-rw-------   1 root root 1578106880 Mai 28 23:01 swapfile
dr-xr-xr-x  13 root root          0 Mai 30 11:58 sys
drwxrwxrwt  19 root root       4096 Mai 30 11:56 tmp
drwxr-xr-x  11 root root       4096 Mai 29 00:06 usr
drwxr-xr-x  15 root root       4096 Apr 12 05:18 var
lrwxrwxrwx   1 root root         30 Mai 29 00:04 vmlinuz -> boot/vmlinuz-4.10.0-22-generic

新的 ls -alh /swapfile:

-rw------- 1 root root 4,0G Mai 30 22:40 /swapfile

uwe@loopy-ubuntu:~$ free -h total used free shared buff/cache available Mem: 7,7G 3,7G 1,3G 129M 2,8G 3,7G Swap: 4,0G 0B 4,0G

journalctl: uwe@loopy-ubuntu:~$ journalctl --boot | pastebinit http://paste.ubuntu.com/24737809/

我自己创建了交换文件。 http://paste.ubuntu.com/24737883/

boot
  • 1 个回答
  • 1058 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