在Linux(Ubuntu)下搭建PHP环境的操作步骤
一、安装Apache2sudo apt-get install apache2二、测试Apache2在地址栏输入以下地址,出现如图所示照片,则表明安装成功http://localhost/三、重启apache2服务sudo /etc/init.d/apache2 restart //'restart'->'stop'关闭服务;...
View ArticleLinux下的信号详解及捕捉信号
信号的基本概念每个信号都有一个编号和一个宏定义名称 ,这些宏定义可以在 signal.h 中找到。使用kill -l命令查看系统中定义的信号列表: 1-31是普通信号;...
View Article浅析shell脚本知识之符号篇
shellShell还有一种执行命令的方式称为批处理(Batch),用户事先写一 个Shell脚本(Script),其中有很多条命令,让Shell一次把这些命令执行完,而不必一条一条地敲 命令。Shell脚本和编程语言很相似,也有变量和流程控制语句,包括循环和分支。但Shell脚本是解释执行的,不需 要编译,Shell程序从脚本中一行一行读取并执行这些命令,相当于一个用户把脚本中的命令一行一...
View Article谈谈shell中的eval与crontab命令
evaleval会对后面的命令进行两遍扫描,如果第一遍扫描后,命令是个普通命令,则执行此命令;如果命令中含有变量的间接引用,则保证间接引用的语义。也就是说,eval命令将会首先扫描命令行进行所有的置换,然后再执行该命令。因此,eval命令适用于那些一次扫描无法实现其功能的变量。eval 执行以下两个步骤 第一次,执行变量替换,类似与C语言的宏替代 第二次,执行替换后的命令串栗子:1....
View Article谈谈linux中flock、lockf和fcntl的区别
首先flock和fcntl是系统调用,而lockf是库函数。lockf实际上是fcntl的封装,所以lockf和fcntl的底层实现是一样的,对文件加锁的效果也是一样的。后面分析不同点时大多数情况是将fcntl和lockf放在一起的。下面首先看每个函数的使用,从使用的方式和效果来看各个函数的区别。 1. flock函数原型int flock(int fd, int operation); //...
View ArticleGetting Started with Docker on Raspberry Pi
I have put this guide together to help you get started with Docker on your Raspberry Pi. For simplicity we will use the default operating system for the Pi - called Raspbian. This guide currently works...
View ArticleTop 5: Alternatives to Office 365, Why do you love Linux?, and more
In this week's Top 5, we highlight Docear for researchers, one linux user's journey in keeping modern firmwares current, 25 reasons our readers love Linux,three command-line music players, and open...
View Article2016 LiFT Scholarship Winner Alexander Popov: Linux Kernel Contributor
Alexander Popov is a linux system administrator and Linux kernel contributor whose dream is to become a full-time kernel developer. He was one of 14 IT professionals to receive a 2016 Linux Foundation...
View ArticleGNOME Keysign - GSoC 2016 Final Report
Modernising GNOME-Keysign As GSoC 2016 came to end, here's what happened to this project over the summer. I have created a separate 'gsoc' branch with details about the implementation [1] . There's...
View ArticleSoftware Carpentry: SC Config; write once, compile anywhere
Nine years ago, when I first release python to the world, I distributed it with a Makefile for BSD Unix. The most frequent questions and suggestions I received in response to these early distributions...
View ArticleMicrosoft R Open 3.3.1 now available for Windows, Mac and Linux
Microsoft R Open 3.3.1 , our enhanced disstribution of open source R, is now available for download for windows, Mac, and linux. This update upgrades the R langauge engine to version 3.3.1,...
View ArticleCapacitive Imaging With A Raspberry Pi Touch Screen
We use touch screens all the time these days, and thoughwe all know they support multiple touch events it is easy for us to take them for granted and forget that they are a rather accomplished sensor...
View ArticleORACLE OPENWORLD - Hands on Labs for Oracle Linux and Virtualization
Hi everyone, This week's Friday Spotlight is aboutOracle OpenWorld Hands-on Labs for Oracle linux and Virtualization. Last week, we covered our conference sessions . If you are still deciding whether...
View ArticleThe platinum searcher
The Platinum Searcher A code search tool similar to ack and the_silver_searcher(ag) . It supports multi platforms and multi encodings. Features It searches code about 3 5× faster than ack . It searches...
View ArticleHaving offended everyone else in the world, Linus Torvalds calls own lawyers...
Coding curmudgeon Linus Torvalds has gone off on yet another rant: this time against his own lawyers and free software activist Bradley Kuhn. On a mailing list about an upcoming linux conference, a...
View ArticleGNOME usability test analysis
Renata has posted an analysis of her GNOME usability test. You may recall this was a traditional usability test of other areas of GNOME development. We also wanted to measure how GNOME has improved...
View ArticleUbuntu Linux 16.10 (Yakkety Yak) Beta 1 now available for download (don't...
linux celebrated a25th birthday yesterday -- a spectacular open source milestone. For some folks, rather than eat cake, they reflected on how the kernel impacted their lives. For many, Ubuntu would be...
View Articlelinux下查找java进程占用CPU过高原因
linux下查找java进程占用CPU过高原因 2天前来源:cnblogs 1. 查找进程 top查看进程占用资源情况 明显看出java的两个进程22714,12406占用过高cpu. 2.查找线程使用top -H -p查看线程占用情况 3.查找java的堆栈信息 将线程id转换成十六进制 #printf %x 15664 #3d30 然后再使用jstack查询线程的堆栈信息 | grep -a...
View ArticleNew MagPi Essentials book: simple electronics
Less than a month has passed since we released Hacking & Making in Minecraft and we’re back again with our seventh Essentials book! Simple Electronics with GPIO Zero isdedicated to helpingyou...
View ArticleCompress all the images!
One advantage that static sites, such as those built by Hugo , provide is fast loading times. Because there is no processing to be done, no server side rendering, no database lookups, loading times...
View Article