再找找工作
找房记
加勒比海盗4
昨日出行
Blessing
May you do good and not evil. May you find forgiveness for yourself and forgive others. May you share freely, never taking more than you give.
Good!
Eucalyptus Ssh Can Not Login Solution
euca-describle-keypairsto see the password first. If there is no password "aa", then use the following command.
euca-add-keypair aa > my.privateelse delete password "aa" first or use another password.
euca-delete-keypair aayou should change my.private file access privilege, like:
chmod 0600 my.privatethen use euca-run-instance to run:
euca-run-instance -k aa -n 1 $emithen I have seen ip of instance. use ssh to login:
ssh -i my.private root@ipdone!
If you do not change my.private file access privilege, then it will report:
privilege 0644 is too open.If you chmod after the report, ssh will not let you login. So change it before you want access your instance.
Windows Apache 配置虚拟主机
<VirtualHost *:8080>
ServerAdmin [email protected]
DocumentRoot “c:/yoursitedir”
ServerName a.com
ServerAlias www.a.com
CustomLog “logs/a.com-access.log” common
ErrorLog “logs/a.com-error.log”
<Directory “c:/yoursitdir2”>
AllowOverride FileInfo
Order allow,deny
Allow from all
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot “c:/yoursitedir2”
ServerName b.com
ServerAlias www.b.com
CustomLog “logs/b.com-access.log” common
ErrorLog “logs/b.com-error.log”
注意在DocumentRoot “c:/yoursitedir2"和<Directory “c:/yoursitdir2”>中路径的最后不能有”/".
然后重启apache即可。
Wordpress Error: PHP Is Not Running Solution
http://localhost/hello.phphello.php is like:
echo "hello";
if the web page presents “hello”, it shows your php is running.
if you want to configure other dir to put your web, you should see my another blog, Here.
Ok, if your php is running. Then config database and wordpress.
Here is instruction.
Then you should open brower and type:
http://ip:port/wp-admin/install.php
if you open install.php in your local computer with brower, it will report
Error: PHP is not runningin your brower, the url address does not prefix with "http://"