1.1
摘要: 无线网络连接: wpa_cli -iwlan0 (这点和其他博客说的不同,花费了很多时间才看出来) set_network 0 ssid "GG"set_network 0 psk "147258369" 可以在/etc/network/interfaces里面改为默认的配置,这样开机就会自动连接 阅读全文
posted @ 2017-08-06 17:50 asml 阅读(394) 评论(0) 推荐(0) 编辑
摘要: /etc/bind/named.conf.options:options { listen-on port 53 { any; }; // 监听在主机的53端口上。any代表监听所有的主机 directory "/var/named"; // 如果此档案底下有规范到正反解的zone file 档名时,该档名预设应该放置在哪个目录底下 ... 阅读全文
posted @ 2017-07-29 22:50 asml 阅读(2058) 评论(0) 推荐(0) 编辑
摘要: 在ls指令加 -l 参数能看到文件权限 就像这样: drwxrwxr-x 2 asml users 4096 Jul 24 02:45 desktop 第一个d表示这是个目录,若为"-"则为文件,"l"为链接,然后是三组rwx(读写运行)设置,分别对应:文件归属用户(u) 文件归属组(g) 其他用户 阅读全文
posted @ 2017-07-24 03:55 asml 阅读(242) 评论(0) 推荐(0) 编辑
摘要: Linux下可以以复制文件的形式设置时区 像这样就能把时区设置为上海: cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 查看效果: date -R Sun, 23 Jul 2017 19:14:37 +0800 阅读全文
posted @ 2017-07-23 19:17 asml 阅读(391) 评论(0) 推荐(0) 编辑
摘要: wget https://raw.githubusercontent.com/xdtianyu/scripts/master/lets-encrypt/letsencrypt.shchmod +x letsencrypt.sh 编辑下配置文件: vim letsencrypt.conf 运行: ./ 阅读全文
posted @ 2017-07-23 04:37 asml 阅读(1161) 评论(0) 推荐(0) 编辑
摘要: 之前安装的H2O不知道为啥,总是崩溃,换Nginx了 第一步,下载最新版代码: http://nginx.org/download/ 第二步,配置: 安装额外软件包: apt install -y libgcrypt11-dev libpcre3 libpcre3-dev libssl-dev ./ 阅读全文
posted @ 2017-07-23 02:44 asml 阅读(553) 评论(0) 推荐(0) 编辑
摘要: 预装软件 编译安装完后,php.ini文件从源码里复制过去 上面有一个编译参数with config file path指定自己的php.ini路径,源码里面有 php.ini development 和 php.ini production 选一个复制过去 php.ini 建议修改的地方: php 阅读全文
posted @ 2017-07-08 10:57 asml 阅读(166) 评论(0) 推荐(0) 编辑
摘要: netstat ano|grep udp netstat ano|grep tcp 分别查看系统开了哪些udp和tcp 也可以用netstat tunlp 这个更精准 lsof i:端口号 能查出某个端口是什么程序在用 kill [PID] 能结束进程 测试DNS查询域名: nslookup www 阅读全文
posted @ 2017-07-07 01:36 asml 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 首先执行 fdisk l 最底下 Device Start End Sectors Size Type /dev/vda1 2048 6143 4096 2M BIOS boot /dev/vda2 6144 104857566 104851423 50G EFI System 然后df指令: Fi 阅读全文
posted @ 2017-07-06 22:18 asml 阅读(6582) 评论(0) 推荐(0) 编辑
摘要: 首先安装全家桶 apt install -y build-essential zlib1g-dev libpcre3 libpcre3-dev unzip cmake libncurses5-dev libpam0g-dev bison libboost-dev libssl-dev openssl 阅读全文
posted @ 2017-07-06 21:19 asml 阅读(909) 评论(0) 推荐(0) 编辑
@.@