小编big*_*ato的帖子

未检测到启用站点中的 Apache 配置?

我正在尝试设置我的新 Redhat 服务器,并且我的 /etc/httpd/sites-enabled 文件夹中有 Apache 配置,但是当我/usr/sbin/httpd -S以 root 身份运行以检查语法时,它只返回:

    [root@511863-web3 sites-enabled]# /usr/sbin/httpd -S
    VirtualHost configuration:
    Syntax OK
Run Code Online (Sandbox Code Playgroud)

所以看起来它没有检测到它。由于它是一个新服务器,我是否缺少某种配置?我重新启动了 httpd,但我的网站仍然无法运行。

rhel apache-httpd

6
推荐指数
1
解决办法
9380
查看次数

Crontab + Ruby on Rails:/usr/bin/env:ruby:没有这样的文件或目录

我有一个 ruby​​ on Rails 应用程序,我需要为 rake 任务安排一个 crontab。

*/5 * * * * RAILS_ENV=production /usr/local/bin/rake -f /usr/local/www/mysite-web-production/current/Rakefile my_site:export_products >> /var/log/export_feed.log 3>&1
Run Code Online (Sandbox Code Playgroud)

但是,它不起作用(当我手动执行它时它可以工作,但不能作为 crontab)并且它向我显示/usr/bin/env: ruby: No such file or directory. 我没有使用RVM。我在 Linux 上使用 ruby​​ 1.9.3 和 Rails 3。

cron path ruby

5
推荐指数
1
解决办法
7076
查看次数

我如何计算我的 pg_restore 在命令行中花费的时间?

我正在尝试跟踪移动数据和升级 Web 应用程序所需的时间。从命令行,我将如何跟踪从 pg_restore 命令开始到它完成所经过的时间?

command-line time postgresql

1
推荐指数
1
解决办法
946
查看次数

在 Unix 中查找扩展名为 .ts 或 .tsx 的所有文件?

我有一个 React 应用程序,其中有些文件在其中.ts,有些文件在.tsx

目前,为了更新 .ts 和 .tsx 文件的内容,我必须运行 2 个单独的命令:

internal-web main % cd src
src main % find . -name '*.tsx' -print0 | xargs -0 sed -i "" "s/SomeThing/SOME_THING/g"
src main % find . -name '*.ts' -print0 | xargs -0 sed -i "" "s/SomeThing/SOME_THING/g"
Run Code Online (Sandbox Code Playgroud)

有没有一种方法可以将其合并到一个命令中,以便我可以同时更新 .ts 和 .tsx 文件?

find

0
推荐指数
1
解决办法
907
查看次数

标签 统计

apache-httpd ×1

command-line ×1

cron ×1

find ×1

path ×1

postgresql ×1

rhel ×1

ruby ×1

time ×1