Articles of fedora

nginx:“/root/index.html”禁止(13:权限被拒绝)

我正在安装nginx。 以下是我遵循的步骤: 在/根目录下创buildindex.html文件 编辑/etc/nginx/nginx.conf。 编辑后它看起来像这样: user nginx; worker_processes 1; error_log /var/log/nginx/error.log; … http { … server { listen 80 default_server; server_name my_domain_name.com; root /root; … } 下面这个问题我放弃了权限: gpasswd – 一个nginx的根 chmod g + x / root (抱歉,无法正确格式化为代码) 我重新启动服务器: 服务nginx重启 我访问了my_domain_name.com,得到了403错误。 /var/log/nginx/error.log内容: "/root/index.html" is forbidden (13: Permission denied), client: 117.211.86.108, server: my_domain_name.com, request: "GET / HTTP/1.1", […]

Fedora 26上的Nginx:无法build立最佳的types_hash错误信息

我已经安装了Fedora和Ngnix,当我开始看到这个错误时,为我的本地开发添加了所有的configuration文件 nginx: [warn] could not build optimal types_hash, you should increase either types_hash_max_size: 2048 or types_hash_bucket_size: 64; ignoring types_hash_bucket_size nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful 我发现解决scheme说我应该添加types_hash_bucket_size到nginx.conf ,但是我已经添加了它,删除了默认的,删除了两个并添加了两个,它坚持显示这个错误。 http { log_format main '$remote_addr – $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; […]

有Nginx的乘客没有在Fedora注册为服务

我运行的Fedora 16 32位,我安装了Nginx的乘客(选项1在安装过程中,一切都为我处理)。 安装正常,但nginx没有注册为服务。 我可以运行它的唯一方法是直接通过/opt/nginx/sbin/nginx 。 没有可能通过/etc/init.d/nginx来运行它 有没有办法如何注册为服务?

“无法更新ICEauthority文件…”错误

我在我的电脑上安装了fedora16和omnet ++ 4.2.1。 我刚刚安装了omnet ++ 4.2.2。 当我从现在开始重新启动系统时,我无法以我的用户名login。 Fedora给我这个错误信息:无法更新ICEauthority文件/ home … .ICEauthority。 它使我在桌面背景下无法访问任何东西。 任何build议这个错误将不胜感激。

Fedora 19的x86_64内核版本与内核源码不同

我在我的VMware工作站上安装了Fedora 19 x86_64。 当我尝试安装第三方软件。 它给我一个消息“找不到内核源文件”。 我通过uname -r检查了内核版本是3.9.5-301.fc19.x86_64。 但是我发现内核源代码版本高于当前运行的内核版本。 /lib/modules/3.9.5-301.fc19.x86_64文件夹中有两个符号链接。 他们是 build – > /usr/src/kernels/3.9.5-301.fc19.x86_64 source – > build 他们是坏的,因为我的系统中没有文件夹/usr/src/kernels/3.9.5-301.fc19.x86_64。 谁能告诉我为什么发生这种情况。 以及如何在我的Fedora中安装正确的内核源码。 十分感谢。

RPM包规格本地化

我需要为俄罗斯当地市场打包专有程序。 要构buildRPM包,我使用了这个指南: https : //stackoverflow.com/a/1165200/1794089 所以,我需要将RPM软件包描述翻译成俄语,即将其本地化。 我用Googlesearch该方法: https : //www.redhat.com/archives/rpm-list/2004-January/msg00062.html 但是它不起作用:在Fedora 21 x64软件安装中心仍然以英文显示软件包摘要/描述 – 而系统区域设置为ru_RU.UTF-8。 我究竟做错了什么? SPEC文件片段: … Summary: Test Summary(ru): Тест … License: Proprietary … %description Test application %description -l ru Тестовое приложение

dnf错误:在软件包从.fc22.x86_64升级到.fc22.i686(在fedora 22)后中止(核心转储)

我在Oracle VM中有Fedora 22 XFCE,昨天我试着安装skype-4.3.0.37-fedora.i586.rpm,这个升级了很多的软件包例子:升级了glibc-2.21-13.fc22.x86_64到glibc-2.21-13 .fc22.i686下面提到我的dnf.rpm.log了解更多细节。 在多个包的这个升级之后。 DNF,YUM,RPM得到了崩溃,我不断得到中止(核心转储)错误的DNF,YUM,任何命令的rpm。 请build议如何解决这个中止(核心转储)错误。 [rbeli @ localhost日志] $ dnf更新 中止(核心倾弃) [rbeli @ localhost日志] $ yum更新 Yum命令已被弃用,redirect到“/ usr / bin / dnf update”。 有关更多信息,请参阅“man dnf”和“man yum2dnf”。 要将事务元数据从yum转移到DNF,请运行: 'dnf install python-dnf-plugins-extras-migrate && dnf-2 migrate' 中止(核心倾弃) [rbeli @ localhost日志] $ yum历史 Yum命令已被弃用,redirect到“/ usr / bin / dnf history”。 有关更多信息,请参阅“man dnf”和“man yum2dnf”。 要将事务元数据从yum转移到DNF,请运行: 'dnf install […]

在本地主机上将Web服务器从端口5000redirect到端口80(Fedora)

在Fedora 24上,一个web服务器(Node.js)在端口5000上运行(独立的,没有apache /其他)。试图使它在端口80上可访问。 http:// localhost:5000的作品 试过这个: systemctl stop firewalld iptables -t nat -F iptables -t mangle -F iptables -F iptables -X iptables -t nat -A PREROUTING -p tcp –dport 80 -j REDIRECT –to-ports 5000 http:// localhost不起作用 试了这个 systemctl restart firewalld firewall-cmd –add-service=http –permanent firewall-cmd –zone=external –add-masquerade firewall-cmd –zone=external –add-forward-port=port=80:proto=tcp:toport=5000 firewall-cmd –add-forward-port=port=80:proto=tcp:toport=5000 firewall-cmd –list-all FedoraWorkstation (active) […]

在Linux上使用Ruby on Rails的后台进程

我想做一些过程,比如发送电子邮件或在背景中使用ffmpeg命令,因为这需要花费很多时间。 我希望它应该在后台运行。 我正在使用Fedora 10.我也可以检查我的后台进程是否成功运行。 是否可行?如果是的话,我应该遵循的步骤是什么。任何帮助表示赞赏。 提前致谢。

如何在Fedora中安装NDK?

我想安装和configurationNDK在我的系统有Linux操作系统。 我已经研究了这个关于NDK的链接。 http://developer.android.com/tools/sdk/ndk/index.html ,从中我已经得到了有关NDK的基本知识,但没有得到任何关于如何安装 , configuration和使用NDK的具体答案,我是NDK的新手所以我很困惑,我怎么能接下来的事情。