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

k961's questions

Martin Hope
k961
Asked: 2015-06-18 01:51:25 +0800 CST

ubuntu 文本模式启动欢迎横幅

  • 2

我使用的是 ubuntu 14.04 并且我编辑了 grub 以便它启动到文本模式

我想在登录屏幕中显示一条消息,如下所示:

 _            _   
| |_ ___  ___| |_ 
| __/ _ \/ __| __|
| ||  __/\__ \ |_ 
 \__\___||___/\__|

login:

我还想运行此命令,以便当用户在 VM 中运行操作系统时,它会在登录屏幕中显示 ip 地址:

ifconfig | perl -nle 's/dr:(\S+)/print $1/e'

有没有我应该编辑的文件?我想像 ssh 横幅和欢迎消息那样做

text-mode
  • 1 个回答
  • 1873 Views
Martin Hope
k961
Asked: 2015-03-09 06:35:31 +0800 CST

如何加密 Pidgin 帐户密码

  • 1

我们知道 pidgin 在这个文件中以明文形式存储密码:

/home/username/.purple/accounts.xml

有没有办法加密存储在这个文件中的密码?

password
  • 1 个回答
  • 617 Views
Martin Hope
k961
Asked: 2014-08-13 06:36:53 +0800 CST

ubuntu 安装没有检测到第二个硬盘驱动器

  • 0

我有2个sata硬盘

1 TB 和 500 GB

我在 500gb 硬盘驱动器上创建了另一个分区,但在 ubuntu 安装中我看不到我只创建硬盘驱动器的分区并像这样检测它:

大小:467Gb 可用空间:未知

在此处输入图像描述

system-installation
  • 1 个回答
  • 2526 Views
Martin Hope
k961
Asked: 2014-08-05 22:32:53 +0800 CST

nginx 和 php5-fpm 不工作

  • 3

在我到处搜索并测试所有内容但仍然无法正常工作之前,当我在浏览器中打开 localhost 时,我安装了 php5-fpm 和 nginx,我看到了这个页面:

欢迎使用 nginx!

所以它现在正在使用 nginx 配置 php5-fpm :

/etc/php5/fpm/pool.d/www.conf

  user = www-data
  group = www-data
  listen = /var/run/php5-fpm.sock
  listen.owner = www-data
  listen.group = www-data
  pm = dynamic
  pm.max_children = 5
  pm.start_servers = 2
  pm.min_spare_servers = 1
  pm.max_spare_servers = 3
  chdir = /

所有其他行都已注释,这是 nginx conf:

  upstream php {
        server unix:/var/run/php5-fpm.socket;
  }

server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;

root /usr/share/nginx/html;
index index.html index.htm index.php;

# Make site accessible from http://localhost/
server_name localhost;

location / {
    # First attempt to serve request as file, then
    # as directory, then fall back to displaying a 404.
    try_files $uri $uri/ =404;
    # Uncomment to enable naxsi on this location
    # include /etc/nginx/naxsi.rules
}

# Only for nginx-naxsi used with nginx-naxsi-ui : process denied requests
#location /RequestDenied {
#   proxy_pass http://127.0.0.1:8080;    
#}

#error_page 404 /404.html;

# redirect server error pages to the static page /50x.html
#
#error_page 500 502 503 504 /50x.html;
#location = /50x.html {
#   root /usr/share/nginx/html;
#}

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
try_files $uri =404;
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_index index.php;
    include fastcgi_params;

}

# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
#   allow all;
#}
}

问题是当我尝试运行 php 文件时,nginx 将下载 php 文件而不是执行它

php
  • 2 个回答
  • 26723 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