Quantcast
Channel: CodeSection,代码区,Linux操作系统:Ubuntu_Centos_Debian - CodeSec
Browsing all 11063 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Using PHP-FPM with Apache on Ubuntu 16.04

This tutorial shows how to install an Apache webserver on an Ubuntu 16.04 server with php 7 (through PHP-FPM ) and mysql support. PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI...

View Article


Image may be NSFW.
Clik here to view.

GNOME Logs Search Provider

Hello everyone, In this post I will be telling you about the search provider for the GNOME Logs as implemented by me in the last two weeks. When we type a search term in the GNOME Shell overview search...

View Article


Debian and Tor Services available as Onion Services

We, theDebian project and the Tor project are enabling Tor onion services for several of our sites. These sites can now be reached without leaving the Tor network, providing a new option for securely...

View Article

Image may be NSFW.
Clik here to view.

Networking Updates For Linux 4.8, QCA9888 Added To ath10k

Networking Updates For linux 4.8, QCA9888 Added To ath10k Written by Michael Larabel inHardware on 1 August 2016 at 11:45 AM EDT.Add A Comment David Miller submitted the networking subsystem updates...

View Article

Image may be NSFW.
Clik here to view.

Review: Linux Mint 18 "Sarah" MATE

My laptop is getting old, and linux Mint 13 LTS "Maya" Xfce will only be supported for one more year. Given this, I figured it might be time to seriously start looking into newer distributions for...

View Article


Image may be NSFW.
Clik here to view.

UNIX环境高级编程笔记之线程

本章涉及到线程的一些基本知识点,讨论了现有的创建线程和销毁线程的POSIX.1原语,此外,重点介绍了线程同步问题,讨论了三种基本的同步机制:互斥量、读写锁、条件变量。UNIX环境高级编程中文第二版PDF高清版 下载地址 http://www.linuxidc.net/thread-2063-1-1.htmlUnix环境高级编程 源代码地址...

View Article

Image may be NSFW.
Clik here to view.

UNIX环境高级编程笔记之进程控制

本章重点介绍了进程控制的几个函数:fork、exec族、_exit、wait和waitpid等,主要需要掌握的是父进程和子进程之间的运行机制,怎么处理进程的正常和异常终止、以及怎么让进程执行不同的程序等知识点。下一章将进一步说明一个进程和其他进程之间的关系——会话和作业控制。UNIX环境高级编程中文第二版PDF高清版 下载地址...

View Article

Image may be NSFW.
Clik here to view.

UNIX环境高级编程笔记之文件I/O

一、总结...

View Article


Image may be NSFW.
Clik here to view.

Java多线程之多线程的锁机制

当两条线程同时访问一个类的时候,可能会带来一些问题。并发线程重入可能会带来内存泄漏、程序不可控等等。不管是线程间的通讯还是线程共享数据都需要使用Java的锁机制控制并发代码产生的问题。本篇总结主要著名Java的锁机制,阐述多线程下如何使用锁机制进行并发线程沟通。1、并发下的程序异常  先看下下面两个代码,查看异常内容。  异常1:单例模式 1 package com.scl.thread; 2 3...

View Article


Image may be NSFW.
Clik here to view.

Java多线程之多线程的基本使用

  在总结JDBC数据库连接池的时候,发现Java多线程这块掌握得不是很好,因此回头看了下多线程的内容。做一下多线程模块的学习和总结,稳固一下多线程这块的基础。关于多线程的一些理论知识,这里不想啰嗦太多,可以进行下搜索了解。1. 如何使用Java创建多线程  使用Java多线程,总的来说方法有两种:①继承Thread类,重写run方法...

View Article

Image may be NSFW.
Clik here to view.

消息队列的简单实现

消息队列:一个进程向另一个进程发送数据块 消息队列基于消息,管道基于字节流 消息队列是用链表实现 1.创建:int megget(key_t key, int msgflag) key:函数ftok()的返回值 msgflag:IPC_CREAT是创建新的消息队列;IPC_EXCL与IPC_CREAT一起使用,即如果要创建的消息队列已存在,则返回错误 成功:返回队列标识符 失败:-1...

View Article

Image may be NSFW.
Clik here to view.

进程间通信之信号量

本质:计数器。当前资源个数 生命周期:随内核 本身不具有数据交换的功能,是通过控制其他通信资源(文件、外部设备)来实现进程间通信,本身是一种外部资源的标识。在此过程中负责数据操作的互斥与同步功能。 互斥:独占临界资源(排他) 同步:建立在互斥基础上(顺序性) 主要作用:协调进程对共享资源的访问,保证在任一时刻,只有一个执行线程访问代码的临界区域。(其中共享内存的使用就要用到信号量) 操作:...

View Article

logging the foreground process in X11

Inspired by a similar New Old Thing post, Logging the foreground process as it changes , I thought I’d try my hand at a similar tool for X11. (No doubt such a thing already exists, didn’t look.) I’m...

View Article


关于保留最新文件或清除过期文件的简单总结

在运维工作中经常遇到要管理备份、日志等与时间戳有关的文件,例如删除超过10天的备份/日志文件,保存最新的10个的备份/日志文件等。 “删除超过10天的备份/日志文件”是用的比较多的一种,通常用于定时计划任务,每次产生这些文件都是规律的时间点。 “保存最新的10个备份/日志文件”这种需求通常用在不定时的产生备份(例如每次手动执行一次产生)和日志文件(超过一定的大小则切割)。...

View Article

Distribution Release: ROSA R8

Recent Related News and Releases 2016-02-27 Distribution Release: ROSA R7 "Desktop Fresh GNOME" Konstantin Kalmykov has announced the release ofROSA R7 "Desktop Fresh GNOME" edition, a desktop linux...

View Article


Image may be NSFW.
Clik here to view.

Easy ways to add watermarks to images and videos in Linux

Mostly notes to myself :-) Here is a quick way to add watermarks to photos and videos. All linux command line based - so perfect if you've got a lot of images you want to manipulate. Here is a...

View Article

Image may be NSFW.
Clik here to view.

How to install nginx as a Reverse Proxy for Apache on Ubuntu 16.04

This tutorial exists for these OS versions Ubuntu 15.10 (Wily Werewolf) Ubuntu 12.04 LTS (Precise Pangolin) On this page This tutorial shows how you can set up nginx as a reverse proxy in front of an...

View Article


Image may be NSFW.
Clik here to view.

Ubuntu 16.10 To Ship with Nautilus 3.20

Nautilus 3.20 is toship in Ubuntu 16.10. The latest stable version of the file manager is currently pending in the yakkety-proposed updates, along with some otherGNOME 3.20 apps and a bump to GTK...

View Article

Image may be NSFW.
Clik here to view.

BioShock Infinite Can Run More Than 23% Faster With New RadeonSI Patches

BioShock Infinite Can Run More Than 23% Faster With New RadeonSI Patches Written by Michael Larabel inMesa on 2 August 2016 at 08:24 AM EDT.2 Comments Marek Olák at AMD continues optimizing the...

View Article

Image may be NSFW.
Clik here to view.

Wryte a dictation software for bloggers

wryte Write Like You Talk Paul Graham wryte is a dictation software for blogger and other webworkers. Features are: automatic spell checking easy punctuation via shortcuts, for a natural dictaion flow...

View Article
Browsing all 11063 articles
Browse latest View live