Linux/MAC Service Management
(1) common port occupation query command: lsof netstat
Instance: lsof-I: 80 netstat-an | grep 80 netstat-an | grep LISTEN
Common commands:
Crontab
Common options
Crontab-l view all scheduled tasks crontab-e add and edit the scheduled execution policy time format
Minute-hour-day-month-week task
Execute once every minute ***** execute once every five minutes */5 ***** every day l8: 00: Execute 0 18 * execute 0 at every hour * execute 0 0 at zero every day ***
Execute 0 once per week ** 0 **
** Execute 0 0 1 once per month **
(3) Common service commands: svc service Management supervisor process management (4) download common service sftp (Secure File Transfer) from files ), the default port is 22. Different accounts on sftp correspond to different folders. Note: different versions of MAC or Linux systems log on to sftp in a slightly different way and cannot be accessed from a firewall network.
Sftp-oPort = 2002 username @ ip sftp-P 2002 username @ ip sftp username @ ip: 2002 enter the password and log on to the sftp system.> get filename can download files from the sftp server.