摘要:
Ubuntu运行Chrome出现“Google Chrome can not be run as root”的解决方法 编辑启动文件:/opt/google/chrome/google-chrome 修改最后一行:exec -a "$0" "$HERE/chrome" "$@" to -->exec 阅读全文
摘要:
1.修改镜像源: /etc/apt/sources.list将"http://archive.ubuntu.com/ubuntu/"替换为: http://cn.archive.ubuntu.com/ubuntu/http://mirrors.aliyun.com/ubuntu/http://mir 阅读全文
摘要:
如果文件存在,就直接访问文件,不进行下面的RewriteRule:RewriteCond %{REQUEST_FILENAME} !-f 如果目录存在,就直接访问目录,不进行下面的RewriteRule:RewriteCond %{REQUEST_FILENAME} !-d 如果是这些后缀的文件,就 阅读全文
摘要:
先安装: sudo apt-get install nginx php5-fpm -y 然后编辑配置文件: /etc/nginx/site-available/default 找到“location ~ \.php$”的地方,5行取消注释,变成这样: location ~ \.php$ { #fas 阅读全文
摘要:
1. 打开Windows防火墙 2. 高级设置-->出站规则-->新建规则 3. 添加IDM程序路径,阻止连接 4. 在属性中添加作用域,远程IP地址: DNS解析出IP:registeridm.com www.registeridm.com www.internetdownloadmanager. 阅读全文
摘要:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun 阅读全文
摘要:
https://greasyfork.org/zh-CN/scripts 阅读全文
摘要:
假设目标主机是Linux,终端主机是Windows(就是在Windows上使用VNC登陆Linux): 在Linux中执行: vncconfig -nowin& 在Linux选中文字后,无需其他按键,直接在Windows中可以黏贴。 在Windows中选中文字,Ctrl+C,在Linux中按中键黏贴 阅读全文
摘要:
一. Ubuntu默认的中文字符编码 Ubuntu默认的中文字符编码为zh_CN.UTF-8,这个可以在/etc/environment中看到: sudo gedit /etc/environment 可以看到如下内容: PATH="/usr/local/sbin:/usr/local/bin:/u 阅读全文
摘要:
cd /usr/bin sudo vmware-installer -u vmware-player 阅读全文
摘要:
<?php print_r( array_rand( array( "新春快乐"=>"", "猴年大吉"=>"", "心想事成"=>"", "恭喜发财"=>"", "合家欢乐"=>"" ), 1) );?> 阅读全文
摘要:
查看系统当前时间: data -R 1.运行tzselect: sudo tzselect 2.复制文件到/etc目录下: sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 3.更新时间: sudo ntpdate time.windo 阅读全文
摘要:
Ubuntu Server版默认都没有图形桌面(GUI),但是可以安装,以下共有两种安装方法。 一、安装全部Gnome桌面环境 Ubuntu系列桌面实际上有几种桌面应用程序,包括Ubuntu-desktop、 Kubunut-desktop和Xubuntu- desktop。本文就以Ubuntu-d 阅读全文