- 博客(14)
- 资源 (11)
- 收藏
- 关注
原创 如何让你的程序在linux开机时自动启动
只需要在/etc/rc.local里添加你的程序即可,例如需要nginx服务在每次开机时自动运行则可以加入如下的配置,添加最后一行/usr/local/nginx/sbin/nginx即可#!/bin/sh## This script will be executed *after* all the other init scripts.# You can put your own
2012-12-19 15:42:50 1000 5
转载 如何在linux上添加新硬盘
在linux中有新磁盘插入后,为了使系统识别新磁盘,必须随即重新引导系统。这里,可以用以下命令来使系统识别新的驱动器:echo "scsi add-single-device w x y z" > /proc/scsi/scsi为使该命令正常运行,必须指定正确的参数值 w、x、y 和 z,如下所示: w 是主机适配器标识,第一个适配器为零(0)x 是主机适配器上的 SCSI
2012-12-19 11:06:43 491
原创 linux 手动安装中文字体
首先在Windows电脑中的C:\Windows\Fonts目录复制字体文件把需要的字体拷贝到linux的/usr/share/fonts目录下进入fonts目录执行fc-cache重启需要使用中文字体的应用程序,这样应用程序就支持中文了
2012-12-19 10:53:56 724
转载 linux上查看系统信息
1.查看CPU信息 在/proc目录下有一个cpuinfo文件,里面有关于CPU的一些信息。想知道cpu有几个核可以使用这个命令。 Bash代码 cat /proc/cpuinfo | grep processor | wc -l 其实这个命令显示的核数并不一定是真实的,因为现在普遍使用超线程技术,所以显示的核数可能是真实核数的两倍。 想要查看CP
2012-12-19 10:05:26 351
原创 查看linux操作系统信息
查看操作系统信息 查看内核版本可以用uname。 uname -r 查看操作系统的版本可以查看/proc/version文件。
2012-12-19 10:03:18 373
原创 自动mount卷
Automatically Mounting VolumesYou can configure your system to automatically mount the Gluster volume each time your system starts. To automatically mount a Gluster volume To mount a volume, e
2012-12-19 09:58:31 496
原创 Makefile怎样写
#一个最简单的Makefile,自己测试一下代码段的时候很有用CC=gccCFLAGS=-g #此句和下面一句为一个section,指定YourProgramName的规则。YourProgramName: Object1.o #指明程序YourProgramName由YourProgramName.o生成,有多个Object时,再末尾继续添加即可$(CC) -o Your
2012-12-12 11:24:54 366
原创 NGINX笔记
|--ngx_http_static_handler |--ngx_http_discard_request_body |--ngx_http_read_discarded_request_body |--recv
2012-12-11 11:27:11 858
转载 sh脚本异常:/bin/sh^M:bad interpreter: No such file or directory
1 在windows下转换利用一些编辑器如UltraEdit或EditPlus等工具先将脚本编码转换,再放到Linux中执行。转换方式如下(UltraEdit):File-->Conversions-->DOS->UNIX即可。 2 在Linux中转换2.1 首先要确保文件有可执行权限 #sh>chmod a+x filename 2.2 然后修改文件格式
2012-12-05 10:56:50 642
转载 nginx源码跟踪
请关注最新修正合订:http://lenky.info/ebook/这一系列的文章还是在09年写的,存在电脑里很久了,现在贴出来。顺序也不记得了,看到那个就发那个吧,最近都会发上来。欢迎转载,但请保留链接:http://lenky.info/,谢谢。nginx函数众多,指针复杂,加上大量函数指针的干扰,要仅靠阅读源代码来理清nginx程序的执行流程难度较大,这一节,我将提供一个获得ngin
2012-12-05 10:21:09 691
转载 Nginx实践:用proxy_store实现高效的静态文件分布缓存服务器
曾经写过是否要放弃使用varnish/squid, 经过几天的实验,终于找到一种比较理想的解决方案: 直接使用proxy模块的proxy_store来实现分布mirror. 首先说说我的需求: 1. 我需要将一些静态文件从应用服务器剥离, 负载到其他的节点. 2. 这些文件主要是静态Html和图片,包括缩略图. 这些文件一旦创建,更新的频率很少.
2012-12-01 09:06:11 5918
转载 Nginx 的 proxy_store 缓存
有这么一个情况,有个运行Asp的应用,比较土,还是用本地 *.mdb 的数据库。这么一来,就不可能通过 Apache ::: asp 这样的插件令其运行在Linux的环境中。而且是相当烂的一个 asp 程序,连html模板都没单独目录存放,直接跟 *.asp 混在一块。幸好这个世界有 Nginx, 是对待这种破东西最好的优化。如果直接靠 IIS 既处理 asp 又处理静态文
2012-12-01 09:05:19 4012
cuda-430.64-desktop-win10-64bit-international-dch-whql.exe
2021-04-28
cuda-430.64-desktop-win10-64bit-international-whql.exe
2021-04-28
ARINC 604-1-1988(BIT).pdf
2020-11-16
ARINC 839 2014.pdf
2020-02-09
ARINC 830 2014.pdf
2020-02-09
uwsgi-2.0.16-1.el7.x86_64.rpm
2018-06-01
nginx-1.14.0-1.el7_4.ngx.x86_64.rpm
2018-06-01
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人