LINUX/MAC Service Management

Source: Internet
Author: User

(a) Port occupancy query Common commands:
    • Lsof
    • Netstat

Example:
    • Lsof-i:80
    • Netstat-an | grep 80
    • Netstat-an | grep LISTEN querying the port of native listening
     (ii) Crontab Scheduled Tasks

Common commands:

    • Crontab

Common options

    • Crontab-l View all Scheduled Tasks
    • Crontab-e new edit timed execution policy
    Time Format

Minute-time-day-month-week task

  • Execute once per minute * * * * *
  • executes every five minutes */5 * * * *
  • 0 l8:00 per day * * * *
  • execute once per hour 0 * * * *
  • executed at 0 o ' Day 0 0 * * *

Weekly * * Executes once 0 0 * 0

Monthly * * Executes once 0 0 1 * *

(iii) Service services Common commands:
    • SVC Service Management
    • Supervisor Process Management
(d) Download on fileCommon Services SFTP (guaranteed file transfer security), the default port isdifferent accounts to different folders on SFTPNote: Different versions of Mac or Linux systems have a slightly different way of signing in to SFTP and cannot be accessed from a network with a firewall
    • sftp-oport=2002 [email protected]
    • SFTP-P 2002 [Email protected]
    • sftp [Email protected]:2002
after entering the password to log in to the SFTP system,> Get filename to download files from the SFTP server          

LINUX/MAC Service Management

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.