Jump to content
View in the app

A better way to browse. Learn more.

PHP论坛人

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

設置Cron

Featured Replies

----------
設置Cron
----------

以下為 root 使用者的 crontab


開機啟用cron
systemctl enable cron


啟動cron
systemctl start cron


檢查cron狀態,確認已運行 active (running)
systemctl status cron


瀏覽crontab定時任務運行列表
crontab -l


已經自動寫入到crontab (此為 acme.sh 自動續期憑證的排程任務,通常是安裝時自動加入)
37 7 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null



開啟crontab
crontab -e


將顯示訊息 Select an editor.  To change later, run 'select-editor'.
將顯示訊息 1. /bin/nano        <---- easiest
將顯示訊息 2. /usr/bin/vim.basic
將顯示訊息 3. /usr/bin/vim.tiny

我慣用vi,所以按 2


ESC 離開 (前提是沒有修改)
:q


或者是 ESC 強制不存檔離開
:q!

Edited by Jack

Create an account or sign in to comment

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.