2012年5月7日 星期一
2012年5月2日 星期三
javax.servlet.FilterChain is a restricted class. Please see the Google App Engine developer's guide for more details.
解決方法移除将JDK/lib/ext/servlet-api.jar移出目錄即可。
http://blog.tonycube.com/2010/05/gae-java-servlet-error.html
2012年4月2日 星期一
2012年2月15日 星期三
2012年1月31日 星期二
LNMP添加Virtual Host步驟
1. sudo /root/vhost.sh
2. 依照提示設定
3. sudo /root/lnmp reload
Nginx的virtualhost 設定檔位置 cd /usr/local/nginx/conf/vhost/
2. 依照提示設定
3. sudo /root/lnmp reload
Nginx的virtualhost 設定檔位置 cd /usr/local/nginx/conf/vhost/
2012年1月13日 星期五
增加使用者權限
is not in the sudoers file. This incident will be reported.
下面是解决方法:
1)进入超级用户模式。也就是输入"su -",系统会让你输入超级用户密码,输入密码后就进入了超级用户模式。(当然,你也可以直接用root用)
(注意有- ,这和su是不同的,在用命令”su”的时候只是切换到root,但没有把root的环境变量传过去,还是当前用户的环境变量,用”su -”命令将环境变量也一起带过去,就象和root登录一样)
2)添加文件的写权限。也就是输入命令"chmod u+w /etc/sudoers"。
3)编辑/etc/sudoers文件。也就是输入命令"gedit /etc/sudoers",进入编辑模式,找到这一 行:"root ALL=(ALL) ALL"在起下面添加"www_linuxidc_com ALL=(ALL) ALL"(这里的xxx是你的用户名),然后保存退出。
Ubuntu技巧之 is not in the sudoers file解决方法
4)撤销文件的写权限。也就是输入命令"chmod u-w /etc/sudoers"
下面是解决方法:
1)进入超级用户模式。也就是输入"su -",系统会让你输入超级用户密码,输入密码后就进入了超级用户模式。(当然,你也可以直接用root用)
(注意有- ,这和su是不同的,在用命令”su”的时候只是切换到root,但没有把root的环境变量传过去,还是当前用户的环境变量,用”su -”命令将环境变量也一起带过去,就象和root登录一样)
2)添加文件的写权限。也就是输入命令"chmod u+w /etc/sudoers"。
3)编辑/etc/sudoers文件。也就是输入命令"gedit /etc/sudoers",进入编辑模式,找到这一 行:"root ALL=(ALL) ALL"在起下面添加"www_linuxidc_com ALL=(ALL) ALL"(这里的xxx是你的用户名),然后保存退出。
Ubuntu技巧之 is not in the sudoers file解决方法
4)撤销文件的写权限。也就是输入命令"chmod u-w /etc/sudoers"
訂閱:
文章 (Atom)

