1、 終端命令
a).打開Mac的命令終端,輸入 sudo su 按回車
b).輸入 ssh root@102.210.86.213 它會提示你輸入密碼,輸入正確的密碼之后,你就發現已經登陸成功了。
2、apache 配置和重啟
a).Ubuntu默認是/var/www,可以在/etc/apache2/sites-available目錄的default中修改apache 默認地址。
b).一、Start Apache 2 Server /啟動apache服務
# /etc/init.d/apache2 start
or
$ sudo /etc/init.d/apache2 start
二、 Restart Apache 2 Server /重啟apache服務
# /etc/init.d/apache2 restart
or
$ sudo /etc/init.d/apache2 restart
三、Stop Apache 2 Server /停止apache服務
# /etc/init.d/apache2 stop
or
$ sudo /etc/init.d/apache2 stop
3、修改文件夾可讀寫權限
a).sudo chmod -R 777 www