- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。
我们不允许在 Stack Overflow 上提出有关专业服务器或网络相关基础设施管理的问题。您可以编辑问题,使其成为 on-topic对于堆栈溢出。
7年前关闭。
Improve this question
服务器有Ubuntu 12.10,我尝试安装cron
:
sudo apt-get update
sudo apt-get install cron
Reading package lists... Done
Building dependency tree
Reading state information... Done
cron is already the newest version.
The following package was automatically installed and is no longer required:
php5-common
Use 'apt-get autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
sudo /sbin/chkconfig crond on
:
sudo: /sbin/chkconfig: command not found
sudo /sbin/service crond start
:
sudo: /sbin/service: command not found
crond
位于其他地方?或者,我还想念别的东西吗?
ps -ef | grep cron
的输出:
root 716 1 0 May30 ? 00:00:15 cron
deployer 26036 25816 0 10:59 pts/2 00:00:00 grep --color=auto cron
最佳答案
如评论中所示,并按照您提到的教程 How To Use Cron To Automate Tasks On a VPS ,这是你错过的:
service
在哪里:which service
/usr/sbin/service
,那么你必须使用它来启动 cron:sudo /usr/sbin/service cron start
start: Job is already running: cron
给你,所以它已经在运行了。一般来说,要知道它是否正在运行,您可以执行命令ps -ef | grep cron
cron
在您的服务器上运行。您可以使用 crontab -e
对其进行编辑, 查看当前值 crontab -l
.你可以用一个假人测试它* * * * * echo "hello" >> /tmp/test123
, 那将写成 hello
在/tmp/test123 每分钟。如有需要可在https://stackoverflow.com/tags/crontab/info 中调试. 关于ubuntu - 在 Ubuntu VPS 上设置 CRON,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25136679/
我的 VPS 帐户一直存在内存问题。它运行着一些 WordPress 网站,但它们的流量都很低。对于所有站点的总和,服务器每天只能接待大约 500 名访问者。这会导致数据库停止响应并导致网站崩溃。 找
关闭。这个问题是off-topic .它目前不接受答案。 想改进这个问题? Update the question所以它是on-topic对于堆栈溢出。 10年前关闭。 Improve this qu
已关闭。这个问题是 off-topic 。目前不接受答案。 想要改进这个问题吗? Update the question所以它是on-topic用于堆栈溢出。 已关闭12 年前。 Improve th
已结束。此问题正在寻求书籍、工具、软件库等的推荐。它不满足Stack Overflow guidelines 。目前不接受答案。 我们不允许提出寻求书籍、工具、软件库等推荐的问题。您可以编辑问题,以便
我在centos 7中的vps,我有用java开发的应用程序,3个文件 .jar 。我需要在 vps 启动或登录时运行此文件,例如“java -jar file-name”我如何运行该文件(如服务)
今天有位lnmp一键安装包用户找到我说centos 5.4 32bit独立服务器上安装lnmp一键安装包不成功,/usr/local/下面php mysql nginx的目录都没有,用root登录后
我正在尝试将我的应用程序绑定(bind)到我的 VPS。 你能告诉我每个 VPS 都有唯一的标识符吗? 理想情况下,可以通过 Ubuntu 服务器中的命令确定。 提前致谢。 最佳答案 想到三件事。 M
我目前有一台运行 Cherokee 的服务器,但我的软件有很多问题,需要来自其他服务器(主要是 Apache)的特定技术,我正在考虑切换到 Bitnami 堆栈,因为我有一些不同的软件(Wordpre
已关闭。此问题不符合Stack Overflow guidelines 。目前不接受答案。 这个问题似乎与 help center 中定义的范围内的编程无关。 . 去年关闭。 社区去年审查了是否重新开
我正在尝试在 Azure 上打开多个端口。我有一个 VPS,带有一个网络安全组和一个虚拟网络和子网。一切似乎都配置正确,检查图像: 但尝试 ping 任何端口,例如 8080: nc -zv 52.1
已关闭。此问题不符合Stack Overflow guidelines 。目前不接受答案。 已关闭 9 年前。 此问题似乎与 a specific programming problem, a sof
我想在 (VPS) linu 系统下安装 Bitcoind。我得到了如何进行此安装的分步教程,但每次我尝试添加存储库时,我都会在控制台上收到以下错误消息“sudo: add-apt-repositor
我敢肯定你们中的很多人曾经和我现在处于同样的境地。 之前 我曾经拥有共享主机大约 2 年。每当我创建一个新站点时,我都会习惯它。我只需要通过 FTP 将我的整个新文件夹包括:index.html、样式
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 这个问题似乎不是关于 a specific programming problem, a softwar
点击开始后选择运行->输入mstsc命令并确定,输入IP地址,用户名和密码就可以进行远程操作了 很多用户因为不是计算机行业,所以都不知道如何远程连接自己购买的主机。本篇文章将告诉客户如何进行
1、安装计划任务 这个程序在某些系统上可能没有预装,需要执行下面的命令进行安装。 yum install -y vixie-cron 然后启动服务 service crond start
备份的数据如果不是特别大的话,不建议压缩,防止其中可能会有已经被多次压缩过的文件损坏。 备份数据库的方式为停止MYSQL服务后备份DATA目录,期间MYSQL会中止数秒至数十秒。请自行权衡利弊。
很多用户因为不是计算机行业,所以都不知道如何远程连接自己购买的主机。本篇文章将告诉客户如何进行远程连接,按照下面的步骤可以连接到自己主机远程管理桌面。 1、通过命令,具体如下: 点击开始后选择运
前些时谈了一下如何屏蔽对网站服务器的扫描,属于前台防御。后来 Felix 发了一篇 blog 提到将多次尝试 SSH 登录失败的 IP ban 掉,才想起来去看一下日志,没想到后院起火了。 
在网络的大世界中,vps,云主机,独立服务器都是比较常见的建站软件,尤其对于电子商务,网上赚钱的朋友更是尤为的重要,那么在生活中比较常见的vps,云主机,独立服务器都是什么意思,刚建站的朋友想
我是一名优秀的程序员,十分优秀!