vps开启root访问

sudo su root
cd
passwd root
nano /etc/ssh/sshd_config
下面两个改为yes
PermitRootLogin yes
PasswordAuthentication yes
保存退出
service sshd restart

发表在 linux vps 日志 | 留下评论

digitalocean wordpress

Note: You should not remove this authentication until after you have completed the initial installation. Otherwise, anyone connecting to your domain name or IP address can configure WordPress or access the administration files to change your settings.

To remove the additional password prompt, you’ll need to log into your VPS instance through SSH as we demonstrated above. Once logged in, you need to update the main Apache configuration file. Open it as root with your text editor:

nano /etc/apache2/apache2.conf
Inside, you need to find the section that deals with the “/wp-admin/” section. It should look like this:


AuthType Basic
AuthName “Please login to your droplet via SSH for login details.”
AuthUserFile /etc/apache2/.htpasswd
Require valid-user

This entire section can be commented out by placing the “#” character before each line, like this:

#
# AuthType Basic
# AuthName “Please login to your droplet via SSH for login details.”
# AuthUserFile /etc/apache2/.htpasswd
# Require valid-user
#

Once this is complete, you can restart Apache for your new changes to take affect.

service apache2 restart
This should remove the additional password prompt from the administrative areas, which is usually okay since WordPress itself can handle authentication.

Uploading Webpages

发表在 linux vps 日志 | 留下评论

Linode VPS 添加多IP/设置静态IP(Kloxo no_ip_address解决方法)

Linode VPS 添加多IP/设置静态IP(Kloxo no_ip_address解决方法)

文章转自:http://www.vpser.net/manage/linode-vps-add-ip.html
Linode VPS默认情况下是通过DHCP自动获取IP的,所以在安装Kloxo完成设置Kloxo的时候会出现no_ip_address的提示,这个时候就需要手动设置上IP,这样才能添加域名。 继续阅读

发表在 linux vps 日志 | 标签为 | 留下评论

五月都要过去

就这样过去了。。。。。。。。。。。。加油。

发表在 个人情感 | 留下评论

云南之行

云南之行,起于18日,明日结束。

发表在 个人情感 | 留下评论

linux 内容替换代码

linux 内容替换代码

find -name '*.html'|xargs perl -pi -e 's|_blank|_self|'g

修改

find -name '*.html' | xargs perl -pi -e 's|xxx|yyy|g'

发表在 Uncategorized | 留下评论

域名被dns污染

域名被dns污染,不翻墙打不开此网站了。。。。。。。。。。。。。。。

呜呼哀哉!!!!!!!!!!!!

发表在 个人情感 | 留下评论

html随机跳转不同的页面代码

无法可视化编辑。。。郁了个闷

<
script language="javascript">
setTimeout(function(){
var arr=["http://www.baidu.com","http://www.sina.com","http://xiaonei.com"];
window.location.href=arr[parseInt(Math.random()*arr.length)];
},5000);

<
meta http-equiv="refresh" content="0;url=http://xxx.com">

发表在 linux vps 日志 | 留下评论

kloxo SSL显示”certificate_key_file_corrupted”错误的解决办法

kloxo SSL显示”certificate_key_file_corrupted”错误的解决办法,解密XXXX.key的内容到XXXXX.txt.
然后复制下在的内容到kloxo里就可以了。

—–BEGIN RSA PRIVATE KEY—–
XXXXX
XXXXX
—–END RSA PRIVATE KEY—–

解密命令。。
openssl rsa -in XXXX.key -text -out XXXXX.txt
———————————————————————

下面是生成命令:
openssl req -nodes -newkey rsa:2048 -keyout XXXXX.key -out XXXXX.csr

vi XXXXX.csr

发表在 linux vps 日志 | 一条评论

kloxo还原目录

kloxo还原目录
/home/kloxo/client/admin/__backup

用iptables屏蔽Ip..

iptables -I INPUT -s 46.249.34.6 -j DROP

1) 重启后生效
开启: chkconfig iptables on
关闭: chkconfig iptables off

2) 即时生效,重启后失效
开启: service iptables start
关闭: service iptables stop

发表在 linux vps 日志 | 留下评论