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

AndreaNobili's questions

Martin Hope
AndreaNobili
Asked: 2022-02-22 08:17:09 +0800 CST

我需要下载哪些版本\选项来安装只能通过 SSH 访问的 Ubuntu 服务器(无桌面模式)

  • 0

我不是系统工程师(我更多的是软件开发人员),我有以下疑问。我必须下载一个 Ubuntu ISO 才能在 VCenter 实例上使用它。基本上,这将用于托管服务器应用程序的服务器(它不适用于桌面用户,与这台机器的连接将仅通过 SSH 完成)。它将用于生产环境,所以我认为采用 LTS 版本是一个不错的选择。

对于这样的案例,您建议使用哪个版本?我正在查看 Ubuntu 网站,我想我必须下载一个Ubuntu 服务器版本(不是桌面版本)。

所以我想用这个:https ://ubuntu.com/download/server

但我需要的正确选项是什么?

  • 选项 1:即时 Ubuntu 虚拟机:这是什么?
  • 选项 2:手动服务器安装:这提供了一个 ISO,所以我想它可能是正确的。
  • 选项 3:自动服务器配置:这是什么?

安装它的人只对我说他需要一个 ISO,所以我认为选项 2是正确的。但我不完全确定。

server
  • 2 个回答
  • 83 Views
Martin Hope
AndreaNobili
Asked: 2020-03-20 15:18:09 +0800 CST

由于系统崩溃重新启动后,以太网接口消失了。如何恢复它?

  • 2

我不太喜欢 Linux,我在使用 VmWare 工作站的 Linux 19.10 系统上遇到了一个非常奇怪的问题(但我认为这不是与 VMware 相关的问题)。

问题是由于崩溃导致系统冻结,我不得​​不重新启动系统。重新启动后,我没有更多的 Internet 连接。

在我获得的 shell中执行ifconfig命令:

developer@developer-virtual-machine:/etc/network$ ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Loopback locale)
        RX packets 2508  bytes 186240 (186.2 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2508  bytes 186240 (186.2 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

因此,由于某种原因,它似乎丢失了 VmWare 用于在 NAT 模式下连接的以太网接口。

我尝试重新启动系统(也是安装 VMWare 的主机 Windows 机器),但我仍然遇到这个问题。我该如何尝试修复它?

EDIT-1:执行sudo lshw -C network我得到这个输出:

developer@developer-virtual-machine:~$ sudo lshw -C network
[sudo] password di developer: 
  *-network DISABLED        
       description: Ethernet interface
       product: 82545EM Gigabit Ethernet Controller (Copper)
       vendor: Intel Corporation
       physical id: 1
       bus info: pci@0000:02:01.0
       logical name: ens33
       version: 01
       serial: 00:50:56:3a:4b:1e
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 66MHz
       capabilities: pm pcix bus_master cap_list rom ethernet physical logical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=e1000 driverversion=7.3.21-k8-NAPI duplex=full latency=0 link=no mingnt=255 multicast=yes port=twisted pair speed=1Gbit/s
       resources: irq:19 memory:fd5c0000-fd5dffff memory:fdff0000-fdffffff ioport:2000(size=64) memory:fd500000-fd50ffff

好像网络被禁用了

networking network-manager ifconfig ethernet 19.10
  • 2 个回答
  • 3494 Views
Martin Hope
AndreaNobili
Asked: 2019-11-26 14:07:46 +0800 CST

为什么我在尝试通过 apt-get 安装程序时收到此错误?解决“archive.ubuntu.com”的临时故障

  • 0

我不太喜欢 Linux。在客户端环境中的 Ubuntu VM 上,我似乎无法使用apt-get命令。

特别是尝试执行:

sudo apt-get install ntpdate

我收到此消息错误:

解决“archive.ubuntu.com”的临时故障

这是一个屏幕截图:

在此处输入图像描述

错误的原因可能是什么?有什么东西可以阻止这个基础设施上的 apt-get 吗?(防火墙或类似的东西?)

Altro 尝试执行以下操作:

sudo apt-get update

我也有同样的问题

我还尝试通过 apt-get 安装其他应用程序,但我面临同样的问题?如果有其他解决方案可以在不使用 apt-get 的情况下手动下载和安装ntpdate ?

software-installation command-line apt
  • 1 个回答
  • 232 Views
Martin Hope
AndreaNobili
Asked: 2019-11-24 03:19:29 +0800 CST

为什么我的 shell 不能自动完成工作?

  • 9

我不太喜欢 Linux,我有以下疑问:一个客户端为我提供了一个 Ubuntu 18.04.3 LTS 虚拟机,我通过 SSH 访问它。(我使用 MobaxTerm 作为 SSH 客户端,但这应该不是问题。)使用的 shell 是sh.

问题是在 shell 中,自动完成功能没有像我预期的那样使用Tab密钥。

它只是简单地放置了经典的制表符空白。

为什么?如何更改此配置?

command-line auto-completion sh dash-shell
  • 1 个回答
  • 11133 Views
Martin Hope
AndreaNobili
Asked: 2019-10-14 10:01:18 +0800 CST

为什么服务 --status-all 没有列出此工作服务?

  • 16

我绝对不喜欢 Linux 系统管理(我是一名软件开发人员),我有以下关于服务的问题。

在Ubuntu 18.04.2 LTS机器上安装了一个软件即服务。我的意思是我可以在 shell 中运行它来执行这个语句:

sudo service wso2ei start

我将服务配置文件放入:

/etc/systemd/system/wso2ei.service

包含这样的内容:

[Unit]
Description=WSO2EI

After=syslog.target
After=network.target

[Service]
Type=simple
WorkingDirectory=/usr/lib/wso2/wso2ei/6.4.0
User=root
Group=nogroup
Environment=JAVA_HOME=/usr/lib/wso2/wso2ei/6.4.0/jdk/jdk1.8.0_192
Environment=CARBON_HOME=/usr/lib/wso2/wso2ei/6.4.0

StandardOutput=syslog
StandardError=syslog

ExecStart=/usr/lib/wso2/wso2ei/6.4.0/bin/integrator.sh
ExecStop=/usr/lib/wso2/wso2ei/6.4.0/integrator.sh stop

#TimeoutSec=130

[Install]
WantedBy=multi-user.target

它工作正常,我可以通过以下语句启动和停止服务:

sudo service wso2ei start

和

sudo service wso2ei stopt

所以这项服务运行良好......但是......我试图通过这个声明列出所有服务:

service --status-all

我希望在输出列表中找到我的wso2ei服务,但没有!

这是我的输出:

$ sudo service --status-all
 [ - ]  acpid
 [ + ]  apparmor
 [ + ]  apport
 [ + ]  atd
 [ + ]  cntlm
 [ - ]  console-setup.sh
 [ + ]  cron
 [ - ]  cryptdisks
 [ - ]  cryptdisks-early
 [ + ]  dbus
 [ + ]  ebtables
 [ + ]  grub-common
 [ - ]  hwclock.sh
 [ + ]  irqbalance
 [ + ]  iscsid
 [ - ]  keyboard-setup.sh
 [ + ]  kmod
 [ - ]  lvm2
 [ + ]  lvm2-lvmetad
 [ + ]  lvm2-lvmpolld
 [ + ]  lxcfs
 [ - ]  lxd
 [ - ]  mdadm
 [ - ]  mdadm-waitidle
 [ - ]  ntp
 [ - ]  open-iscsi
 [ - ]  open-vm-tools
 [ - ]  plymouth
 [ - ]  plymouth-log
 [ + ]  procps
 [ - ]  rsync
 [ + ]  rsyslog
 [ - ]  screen-cleanup
 [ + ]  ssh
 [ + ]  udev
 [ - ]  ufw
 [ + ]  unattended-upgrades
 [ - ]  uuidd
$

为什么我的wso2ei不在此列表中?怎么了?我错过了什么?

此外:如果我检查这个特定服务的状态,我会得到这个输出:

$ sudo service wso2ei status
● wso2ei.service - WSO2EI
   Loaded: loaded (/etc/systemd/system/wso2ei.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2019-10-11 21:03:06 CEST; 1 day 22h ago
  Process: 56854 ExecStop=/usr/lib/wso2/wso2ei/6.4.0/integrator.sh stop (code=exited, status=203/EXEC)
 Main PID: 56912 (integrator.sh)
    Tasks: 179 (limit: 9486)
   CGroup: /system.slice/wso2ei.service
           ├─56912 /bin/sh /usr/lib/wso2/wso2ei/6.4.0/bin/integrator.sh
           └─56958 /usr/lib/wso2/wso2ei/6.4.0/jdk/jdk1.8.0_192/bin/java -Xbootclasspath/a: -Xms256m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -X

所以我认为服务声明以某种方式找到了wso2ei服务。

我想我错过了一些东西......

command-line bash services systemd
  • 1 个回答
  • 9603 Views
Martin Hope
AndreaNobili
Asked: 2017-02-04 01:44:20 +0800 CST

为什么当我尝试更改用户时会收到此错误消息?“我的用户名不在 sudoers 文件中”

  • 0

我不太喜欢 Linux,我有以下问题。

我必须在 Linux 服务器上更改用户(使用给定用户)。

所以我使用

[myusername@myserver~]$ sudo -i -u otherusername
[sudo] password for myusername:
myusername is not in the sudoers file.  This incident will be reported.
[myusername@myserver~]$

所以看来我没有权限这样做或类似的事情。究竟是什么问题?

bash
  • 1 个回答
  • 42 Views
Martin Hope
AndreaNobili
Asked: 2016-11-16 01:56:07 +0800 CST

当我尝试在 Ubuntu 上安装 gem bundler 时,为什么会收到这些错误消息?(无法创建 Makefile)

  • 0

我不是 Ruby 开发人员,我发现在 Ububuntu 16.04 服务器上安装Redmine (用 Ruby 开发)有很多困难。

我正在关注这个官方教程:http ://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_on_Ubuntu_step_by_step

这看起来很简单,但是当“确保安装了捆绑器 GEM”时,我发现很多困难。

我不确定必须安装的捆绑器GEM到底是什么。据我了解(如果我做错了断言,请纠正我),GEM 是打包可执行 Ruby 应用程序的东西(类似于 Java 中的JAR文件)。

所以,问题是当我在 bash 控制台中执行这个语句时:

sudo gem update

我收到许多这样的错误消息:

root@Betrivius-VPS:~# sudo gem update
Updating installed gems
Updating molinillo
Fetching: molinillo-0.5.4.gem (100%)
Successfully installed molinillo-0.5.4
Parsing documentation for molinillo-0.5.4
Installing ri documentation for molinillo-0.5.4
Installing darkfish documentation for molinillo-0.5.4
Done installing documentation for molinillo after 1 seconds
Parsing documentation for molinillo-0.5.4
Done installing documentation for molinillo after 0 seconds
Updating mysql2
Building native extensions.  This could take a while...
ERROR:  Error installing mysql2:
        ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.3.0/gems/mysql2-0.4.5/ext/mysql2
/usr/bin/ruby2.3 -r ./siteconf20161115-29205-1v41srl.rb extconf.rb
checking for rb_absint_size()... yes
checking for rb_absint_singlebit_p()... yes
checking for ruby/thread.h... yes
checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
checking for rb_thread_blocking_region()... no
checking for rb_wait_for_single_fd()... yes
checking for rb_hash_dup()... yes
checking for rb_intern3()... yes
checking for rb_big_cmp()... yes
checking for mysql_query() in -lmysqlclient... no
-----
mysql client is missing. You may need to 'apt-get install libmysqlclient-dev' or 'yum install mysql-devel', and try again.
-----
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/bin/$(RUBY_BASE_NAME)2.3
        --with-mysql-dir
        --without-mysql-dir
        --with-mysql-include
        --without-mysql-include=${mysql-dir}/include
        --with-mysql-lib
        --without-mysql-lib=${mysql-dir}/lib
        --with-mysql-config
        --without-mysql-config
        --with-mysql-dir
        --without-mysql-dir
        --with-mysql-include
        --without-mysql-include=${mysql-dir}/include
        --with-mysql-lib
        --without-mysql-lib=${mysql-dir}/lib
        --with-mysqlclientlib
        --without-mysqlclientlib

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/mysql2-0.4.5/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.3.0/gems/mysql2-0.4.5 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/mysql2-0.4.5/gem_make.out
Updating nokogiri
Building native extensions.  This could take a while...
ERROR:  Error installing nokogiri:
        ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.3.0/gems/nokogiri-1.6.8.1/ext/nokogiri
/usr/bin/ruby2.3 -r ./siteconf20161115-29205-11qd2.rb extconf.rb
checking if the C compiler accepts ... yes
Building nokogiri using packaged libraries.
Using mini_portile version 2.1.0
checking for gzdopen() in -lz... no
zlib is missing; necessary for building libxml2
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/bin/$(RUBY_BASE_NAME)2.3
        --help
        --clean
        --use-system-libraries
        --enable-static
        --disable-static
        --with-zlib-dir
        --without-zlib-dir
        --with-zlib-include
        --without-zlib-include=${zlib-dir}/include
        --with-zlib-lib
        --without-zlib-lib=${zlib-dir}/lib
        --enable-cross-build
        --disable-cross-build

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/nokogiri-1.6.8.1/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.3.0/gems/nokogiri-1.6.8.1 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/nokogiri-1.6.8.1/gem_make.out
Updating psych
Fetching: psych-2.2.0.gem (100%)
Building native extensions.  This could take a while...
Successfully installed psych-2.2.0
Parsing documentation for psych-2.2.0
Installing ri documentation for psych-2.2.0
Installing darkfish documentation for psych-2.2.0
Done installing documentation for psych after 2 seconds
Parsing documentation for psych-2.2.0
Done installing documentation for psych after 1 seconds
Updating rmagick
Building native extensions.  This could take a while...
ERROR:  Error installing rmagick:
        ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.3.0/gems/rmagick-2.16.0/ext/RMagick
/usr/bin/ruby2.3 -r ./siteconf20161115-29205-1qfeji3.rb extconf.rb
checking for gcc... yes
checking for Magick-config... no
checking for pkg-config... no
Can't install RMagick 2.16.0. Can't find Magick-config or pkg-config in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin

*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/bin/$(RUBY_BASE_NAME)2.3

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/rmagick-2.16.0/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.3.0/gems/rmagick-2.16.0 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/rmagick-2.16.0/gem_make.out
Updating sqlite3
Building native extensions.  This could take a while...
ERROR:  Error installing sqlite3:
        ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.3.0/gems/sqlite3-1.3.12/ext/sqlite3
/usr/bin/ruby2.3 -r ./siteconf20161115-29205-1mvfxcm.rb extconf.rb
checking for sqlite3.h... no
sqlite3.h is missing. Try 'brew install sqlite3',
'yum install sqlite-devel' or 'apt-get install libsqlite3-dev'
and check your shared library search path (the
location where your sqlite3 shared library is located).
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/bin/$(RUBY_BASE_NAME)2.3
        --with-sqlite3-config
        --without-sqlite3-config
        --with-pkg-config
        --without-pkg-config
        --with-sqlite3-dir
        --without-sqlite3-dir
        --with-sqlite3-include
        --without-sqlite3-include=${sqlite3-dir}/include
        --with-sqlite3-lib
        --without-sqlite3-lib=${sqlite3-dir}/lib

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/sqlite3-1.3.12/mkmf.log

extconf failed, exit code 1

在这些错误消息中,它说我必须检查/var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/sqlite3-1.3.12/mkmf.log文件内容,这是它的内容(这也许可以提供一些额外的信息来了解问题在哪里):

package configuration for sqlite3 is not found
find_header: checking for sqlite3.h... -------------------- no

"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.3.0 -I/usr/include/ruby-2.3.0/ruby/backward -I/usr/include/ruby-2.3.0 -I. -Wdate-t$
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5:   return 0;
6: }
/* end */

"gcc -E -I/usr/include/x86_64-linux-gnu/ruby-2.3.0 -I/usr/include/ruby-2.3.0/ruby/backward -I/usr/include/ruby-2.3.0 -I. -Wdate-time -D_FO$
conftest.c:3:21: fatal error: sqlite3.h: No such file or directory
compilation terminated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sqlite3.h>
/* end */

--------------------

因此,阅读之前的日志文件,似乎问题可能与:

  fatal error: sqlite3.h: No such file or directory

似乎缺少一个 C 头文件,但我真的不知道为什么。

为什么我有这个问题?我错过了什么?我该如何尝试解决此问题?

肿瘤坏死因子

16.04
  • 2 个回答
  • 1885 Views
Martin Hope
AndreaNobili
Asked: 2016-10-07 09:28:16 +0800 CST

.bashrc 中的 export PATH 行有什么作用?

  • 10

我不太喜欢 Linux,并且在阅读教程后我有以下疑问。

我必须修改bashrc文件。该文件中包含哪些类型的设置?我认为与 bash shell 环境有关,但我不太确定。

我必须插入这一行:

export PATH=$HOME/.local/bin:$HOME/.local/usr/bin:$PATH

这条线到底是做什么的?

我认为该export语句用于创建一个新变量,使其可用于其他程序。

但是这条线到底是什么?是PATH我定义的变量的名称吗?是什么$HOME?

前一个表达式中和和部分:之间的符号是什么意思?PATH=$HOME/.local/bin$HOME/.local/usr/bin$PATH

这个表达具体是什么意思?

command-line
  • 2 个回答
  • 18120 Views
Martin Hope
AndreaNobili
Asked: 2015-07-17 05:50:27 +0800 CST

为什么我不能使用 CATALINA_HOME 环境变量?

  • 1

我还不是 Linux 用户,我遇到以下环境变量问题。

所以我想添加一个永久环境变量,我是这样做的:

我打开/etc/profile文件并在此文件末尾添加以下行:

CATALINA_HOME=/opt/apache-tomcat-8.0.24

其中/opt/apache-tomcat-8.0.24是包含 tomcat 安装的文件夹(它包含bin TomCat 子文件夹)

然后我保存这个文件。

所以我关闭外壳并重新打开它,然后我尝试这样做:

andrea@andrea-virtual-machine:/$ sudo ./startup.sh
sudo: ./startup.sh: command not found

要启动服务器,请输入/opt/apache-tomcat-8.0.24/bin/并执行命令。

但是正如您所看到的,我得到了一个错误。我错过了什么?

command-line
  • 2 个回答
  • 6186 Views
Martin Hope
AndreaNobili
Asked: 2015-07-03 05:43:39 +0800 CST

我如何才能发现 apt-get 在哪里安装了应用程序?

  • 2

我已经安装了 2 个名为maven并ant使用此命令的开发工具:

sudo apt-get install maven ant

我如何才能发现这些工具在我的系统上的安装目录是什么?

apt
  • 2 个回答
  • 290 Views
Martin Hope
AndreaNobili
Asked: 2015-07-03 05:28:55 +0800 CST

如何设置永久环境变量?[复制]

  • 10
这个问题在这里已经有了答案:
如何设置环境变量? (7 个答案)
6 年前关闭。

我还不是 Linux 专家,我在尝试添加新的永久环境变量时遇到了一些问题。

所以我必须使用这个值设置一个名为CATALINA_HOME的新环境变量:/opt/apache-tomcat-8.0.23

我该怎么做才能永久设置它?

发件人

bash
  • 1 个回答
  • 47335 Views
Martin Hope
AndreaNobili
Asked: 2015-07-02 05:14:52 +0800 CST

为什么我不能在这个Ubuntu 15.04系统上安装TomCat 8?(执行 chmod 语句时出现错误)

  • 0

我还不是 Linux 专家,我发现在我必须用作开发环境的 Ubuntu 15.04 系统上安装TomCat 8时遇到了一些困难。

所以我正在关注这个教程(我不知道它是否是一个好的教程......):http ://tutorialforlinux.com/2015/04/21/how-to-install-apache-tomcat-8-on -ubuntu-15-04-vivid-32-64bit-gnulinux-easy-visual-guide/

所以我从 TomCat 网站下载了apache-tomcat-8.0.23.tar.gz文件并解压了它。

现在,如教程中所示,我尝试执行此统计信息:

andrea@andrea-virtual-machine:~/Scaricati$ sudo chmod -R root:root /apache-tomcat*

但我收到此错误消息:

chmod: modo non valido: "root:root"

在英语中应该类似于chmod mode not allowed(或类似的东西)。

可能是什么问题呢?如何在我的 Ubuntu 15.04 系统上正确安装 TomCat 8?前面的语句到底是什么意思?

发件人

server
  • 1 个回答
  • 639 Views
Martin Hope
AndreaNobili
Asked: 2014-05-27 10:32:00 +0800 CST

如何发现dev/目录中的哪个文件与我的笔记本电脑的SD读卡器相关?

  • 0

我怎样才能发现dev/目录中的哪个文件与我的笔记本电脑的 SD 读卡器相关?

我以为我可以执行以下操作:

1)从读卡器中取出SD卡

2) 再次插入读卡器

3)打开dmesg日志,在last记录中搜索

但这对我来说是不可能的,因为我的 Ubuntu 安装在虚拟机上,当我移除并重新放入 SD 卡时,系统崩溃

我该怎么做才能发现它?

编辑 1:执行 sudo fdisk -l 我得到这个输出

Disco /dev/sdb: 7948 MB, 7948206080 byte
255 testine, 63 settori/tracce, 966 cilindri, totale 15523840 settori
Unità = settori di 1 * 512 = 512 byte
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identificativo disco: 0x00000000

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sdb1            8192    15518789     7755299    b  W95 FAT32

Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 testine, 63 settori/tracce, 5221 cilindri, totale 83886080 settori
Unità = settori di 1 * 512 = 512 byte
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identificativo disco: 0x000ba73e

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048    77080575    38539264   83  Linux
/dev/sda2        77082622    83884031     3400705    5  Esteso
/dev/sda5        77082624    83884031     3400704   82  Linux swap / Solaris
andrea@andrea-virtual-machine:~$ 

Tnx安德里亚

drivers
  • 1 个回答
  • 1769 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