scp -r 來源 目標
如果是遠端
要加入登入的帳號
範例:
scp -r root@192.168.1.1:/etc /tmp
sudo add-apt-repository ppa:ferramroberto/java sudo apt-get update sudo apt-get install sun-java6-jdk sun-java6-plugi
% sudo apt-get install libmysqlclient15-dev % sudo pecl install pdo % sudo pecl install pdo_mysql
extension=pdo.so extension=pdo_mysql.so
rm /etc/apache2/conf.d/phpmyadmin.conf
sudo nano /etc/apache2/ports.conf
user@mythtv:/etc/apache2$ cat ports.conf
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz
NameVirtualHost *:80
Listen 80
Listen 81
<IfModule mod_ssl.c>
# SSL name based virtual hosts are not yet supported, therefore no
# NameVirtualHost statement here
Listen 443
</IfModule>
sudo vi /etc/apache2/sites-available/phpmyadmin
<VirtualHost *:81> ServerName phpmyadmin DocumentRoot /var/www-81 </VirtualHost>
sudo a2ensite phpmyadmin
sudo service apache2 restart
cd /var/www-81 sudo ln -s /usr/share/phpmyadmin/
ServerName localhost
httpd.conf or apache2.conf in /etc/apache2 and restart apache the notice will disappear./etc/hostname you can also use that name instead of localhost.127.0.1.1 if it is inside your /etc/hosts:127.0.0.1 localhost
127.0.1.1 myhostname
Troubleshooting Apache
apache2: Could not determine the server's fully qualified domain name,
using 127.0.0.1 for ServerName
sudo nano /etc/apache2/conf.d/fqdn
gksu "gedit /etc/apache2/conf.d/fqdn"
ServerName localhost
echo "ServerName localhost" | sudo tee /etc/apache2/conf.d/fqdn