Macserver need to open remote login first. Open with: System Preferences, share check remote login
Frequently used commands are:
Copy (copy native file to remote server) Scp-r Local path/file userName@192. 168. XXX. XX:/tmp#userName为远程serverusername称, followed by the server address,/TMP is a folder for remote server. There are times when you encounter permissions issues. It is possible to consider copying to/TMP and logging on to the remote service before the CP or MV. Enter the remote server current user login password to log in. Assume that you specify a copy of the remote ServerPort number, and the command is Scp-r-p2230Local Path/file userName@192. 168. XXX. XX:/tmp2230 for the specified port number after #当中-p (uppercase)Log in to remote SERVER:SSH userName@192. 168. XXX. XX #userName为远程serverusername称, followed by the server address. Enter the remote server current user login password to log in. Backup Zip-r dirName. zipDirName#先把须要更新的文件备份打包成zipDecompression Unzip Shell. zip #假设产生了__MACOSX文件夹. Please review the previous article. Address: [link text] (http://blog.csdn.net/showhilllee/article/details/47067115 "mac decompression command __macosx related files")Delete RM-RF filename remote view/control (with UI interface) need to open Remote management, open mode: System Preferences, share click to open Remote management in the native system browser Safari address input:VNC://192.168. XXX. XXEnter the remote address IP followed by carriage return. After the pop-up form point connection, the Usernamepassword input box appears, enter the remote machine login username and password, determine the remote control
Also, assume that a common Mac machine is a configuration that the server needs to be aware of:
1. Turn on sharing
-Tap system Preferences, share. Click to open Remote management
2. Confirm that computer hibernation is off
-Power saver, click to open System Preferences:
-Check to prevent the computer from going to sleep on its own when the monitor is turned off
-Uncheck the hypothesis that it is possible to put the hard drive into sleep
-Check wake-up for internet access
-Activate yourself by checking the power off
Macserver Service updates Several shell commands that are used frequently