随笔分类 -  Linux system

1 2 下一页
php 添加 freetype支持
摘要:freetype 基于 gd ,所以只需要重新编译gd.so即可 1、编译安装freetype # wget https://download.savannah.gnu.org/releases/freetype/freetype-2.10.2.tar.gz # tar -xvf freetype- 阅读全文
posted @ 2020-06-23 09:33 宅女士 阅读(2601) 评论(0) 推荐(0)
busybox date 时间的加减
摘要:1、下载安装busybox: # wget http://busybox.net/downloads/busybox-1.29.3.tar.bz2 # tar -jxvf busybox-1.29.3.tar.bz2 # cd busybox-1.29.3 # make defconfig //如果 阅读全文
posted @ 2019-11-26 12:26 宅女士 阅读(2119) 评论(0) 推荐(0)
添加系统环境变量
摘要:1. 添加 Linux系统环境/Bash环境 变量:# echo $PATH ## 查看已有的环境变量# export PATH=/usr:$PATH ## 新添加/usr/目录进环境变量 2. 添加python路径:# echo $PYTHONPATH ## 查看python的路径# export 阅读全文
posted @ 2019-11-12 11:58 宅女士 阅读(996) 评论(0) 推荐(0)
arm交叉编译sudo-1.8.6p7
摘要:1、交叉编译 # tar -xvf sudo-1.8.6p7.tar.gz # cd sudo-1.8.6p7/ # mkdir build # ./configure --prefix=/home//sudo-1.8.6p7/build/ CC=aarch64-linux-gnu-gcc AR=a 阅读全文
posted @ 2019-11-12 11:57 宅女士 阅读(383) 评论(0) 推荐(0)
Linux系统不能解析域名
摘要:问题:正在使用的Linux系统突然有一天不能解析域名gus.xxxxxxxx.com? # ping us.xxxxxxxx.com ping: unknown host us-xxxxxxxx.com 解决方法: 1、查看/etc/hosts # cat /etc/hosts 127.0.0.1 阅读全文
posted @ 2019-11-12 11:57 宅女士 阅读(335) 评论(0) 推荐(0)
-bash: ls: No such file or directory 错误的原因及解决办法
摘要:ubuntu出现如下错误: { Welcome to Ubuntu 16.04.5 LTS (GNU/Linux 4.15.0-42-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://land 阅读全文
posted @ 2019-11-12 11:56 宅女士 阅读(11797) 评论(0) 推荐(0)
ubuntu系统搭建samba服务
摘要:安装samba服务 # apt-get install samba 创建一个samba服务的分享目录 # mkdir /share 创建一个samba服务限制的用户及组 #useradd public 一直按Enter键就可以创建好了 查看是否用户是否创建成功 # ls -al /home drwx 阅读全文
posted @ 2019-11-12 11:51 宅女士 阅读(574) 评论(0) 推荐(0)
inputrc命令
摘要:问题:搭建ubuntu系统后,输入命令的第一个字符+上页按键,发现不能找到历史命令,找了好久才发现是因为/etc/inputrc没有对键盘映射的上页键和下页键进行设置。 解决方法: 修改文件/etc/inputrc,添加对上页键和下页键的设置如下 # vim /etc/inputrc "\e[5~" 阅读全文
posted @ 2019-11-12 11:51 宅女士 阅读(1524) 评论(0) 推荐(0)
centos6.4升级openssh7.4p1
摘要:Centos6.4版本yum升级openssh版本最高到5.3,想要升级到更高的版本需要重新编译 一、查看当前openssh版本: [root@localhost ~]# ssh -VOpenSSH_5.3p1, OpenSSL 1.0.0-fips 29 Mar 2010 二、编译libssl.s 阅读全文
posted @ 2019-11-12 11:50 宅女士 阅读(855) 评论(0) 推荐(0)
nginx服务学习第二章
摘要:nginx.config文件中字符串不显示高亮 nginx服务搭建完成后,查看nginx.config的时候发现没有高亮字符,要想配置文件出现高亮方便观看,需要修改一些配置文件,修改步骤如下: # mkdir -p /root/.vim/syntax # cd /root/.vim/syntax 从 阅读全文
posted @ 2019-11-12 11:50 宅女士 阅读(113) 评论(0) 推荐(0)
centos7.2升级openssh7.9p1
摘要:Centos7.2版本yum升级openssh版本最高到7.4,想要升级到更高的版本需要重新编译 一、查看当前openssh版本: [root@localhost ~]# ssh -VOpenSSH_6.6p1, OpenSSL 1.0.0-fips 29 Mar 2010 二、编译openssh7 阅读全文
posted @ 2019-11-12 11:49 宅女士 阅读(931) 评论(0) 推荐(0)
nginx学习第三章
摘要:一、系统环境 ubuntu6.4系统 nginx 版本: nginx/1.10.3 (Ubuntu)。 二、打开目录浏览功能Nginx默认是不允许列出整个目录的。如需此功能,编辑虚拟主机配置文件,在location server 或 http段中加入autoindex on;另外两个参数最好也加上去 阅读全文
posted @ 2019-11-12 11:48 宅女士 阅读(181) 评论(0) 推荐(0)
nginx服务学习第一章
摘要:一、ubuntu系统安装nginx服务 # apt-get install nginx 二、nginx.config配置文件详解 配置文件结构: 全局块(全局变量) events{ } http{ http全局变量 # upstream模块不是必须的结构 # upstream{ # } server 阅读全文
posted @ 2019-11-12 11:47 宅女士 阅读(152) 评论(0) 推荐(0)
iperf和iperf3详解
摘要:一、iperf server端: iperf -s -p 25001 -B 192.168.33.103 (-u) -s 指定server端 -p 指定端口(要和客户端一致) -B 绑定ip地址 -u udp协议,,默认是tcp协议 client端: iperf -c -p 25001 -B 192 阅读全文
posted @ 2019-08-12 18:36 宅女士 阅读(22891) 评论(3) 推荐(0)
iperf测试流量转发(nginx反向代理tcp/udp)
摘要:一、准备工作 服务器1:192.168.33.102 搭建nginx服务,作为反向代理的中转站 服务器2:192.168.33.103 nginx要反向代理的服务器 服务器3:192.168.33.104 测试反向代理是否成功的服务器 搭建nginx反向代理 tcp/udp负载均衡:https:// 阅读全文
posted @ 2019-08-12 17:40 宅女士 阅读(3474) 评论(0) 推荐(0)
Nginx进行UDP的负载均衡
摘要:准备工作: 服务器1:192.168.33.102 搭建nginx服务,作为反向代理的中转站 服务器2:192.168.33.103 nginx要反向代理的服务器 一、在服务器1上搭建nginx服务 // 启动nginx服务并设置开机自启 # systemctl start nginx # syst 阅读全文
posted @ 2019-08-12 17:12 宅女士 阅读(7138) 评论(0) 推荐(0)
linux如何配置使用sendEmail发送邮件
摘要:sendEmail是一个轻量级、命令行的SMTP邮件客户端。如果你需要使用命令行发送邮件,那么sendEmail是非常完美的选择。使用简单并且功能强大.这个被设计用在php、bash、perl和web站点使用。以上是sendEmail的简单介绍,千万不要和sendmail搞混掉了。用了sendEma 阅读全文
posted @ 2019-08-08 15:29 宅女士 阅读(2992) 评论(0) 推荐(0)
linux系统批量修改root密码
摘要:执行脚本,输入旧的root用户密码进行修改密码, 脚本执行完成后,使用新的密码 ssh 登陆进去查看是否修改成功。 阅读全文
posted @ 2019-07-29 17:17 宅女士 阅读(2205) 评论(0) 推荐(0)
git log命令常用参数集合
摘要:git log 查看 提交历史 默认不用任何参数的话,git log 会按提交时间列出所有的更新,最近的更新排在最上面。 常用的格式占位符写法及其代表的意义。选项 说明%H 提交对象(commit)的完整哈希字串%h 提交对象的简短哈希字串%T 树对象(tree)的完整哈希字串%t 树对象的简短哈希 阅读全文
posted @ 2019-03-18 16:19 宅女士 阅读(537) 评论(0) 推荐(0)
find用法详解
摘要:一、find的用法 find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression] 默认的路径是当前目录,默认的表达方式是-print 1、find命令的一般形式为; fin 阅读全文
posted @ 2019-03-18 16:17 宅女士 阅读(1098) 评论(0) 推荐(0)

1 2 下一页