I reviewed the Linux socket programming, wrote the simplest server and client programs, and passed the test. The server-side programs adopt the loop and busy waiting mechanism, which will be changed to multithreading and thread pool mechanism later.
Server programs
#include
Client Program
#include
Ubuntu14.04 + mutt + msmtp configure the command line mail client in linuxInstall software msmtp mutt
apt-get install -y msmtp mutt
Configure msmtp
After the installation is complete, configure msmtp first. The default configuration file varies with the operating system version and can be viewed through msmtp -- version.
# msmtp --versionmsmtp version 1.4.31Platform: x86_64-pc-linux-gnuTLS/SSL library: GnuT
Linux XMPP server Tigase (Spark client test)
Tigase is an XMPP server developed based on Java. Similar to Openfire, Tigase can be used to build an Instant Messaging (IM) platform.
1. Preparation
Before installing Tigase, you must first prepare the Java Environment and Database (MySQL is used in this article ).
Tigase download: https://projects.tigase.org/projects/tigase-server/files
Download: tigase-server
Related configuration etc. please take a look at an article on server side articles: http://blog.csdn.net/pingd/article/details/478053491.Client Terminal Source code:Openssl_client.c#include 2. Compiling3. Implementationusage:openssl_client [SERVER_IP] [Server_port] Linux OpenSSL programming client side
/tigase.sh Stop Etc/tigase.conf5. Test Tigase server with SparkAfter the server starts successfully, use XMPP client Spark to test the tigase server.Open Spark, register a new user, the server is the host name or IP address of the Tigase server, and the--virt-hosts configuration item in Etc/init.properties is consistent.Once the creation is successful, you can log in directly.Open another spark, create another user and log in, add contacts, and chat w
Related configuration, etc. please see an article about server side articles: http://blog.csdn.net/pingd/article/details/478053491.Client Terminal Source:Openssl_client.c#include 2. Compiling3. Runningusage:openssl_client [SERVER_IP] [Server_port] Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced. Linux OpenSSL programming
Setting up Samba server and using client in Linux
I am just a beginner in Linux. I have encountered many problems during Samba configuration, and the online tutorials are not quite complete. Therefore, I will write a complete article here for your convenience.
1. First, find the smb-related service programs in the Add/delete software library. Generally, they are
FTP library, written in C by Thomas pfau
The detailed API (HTML) and description (readme. ftplib_v3.1) are provided, which can be used in both Windows and Linux environments. The RFC 959 file of the FTP protocol is also attached.
Download Page:
Http://nbpfaus.net /~ Pfau/ftplib/
Ftplib
Ftplib is a set of routines that implement the FTP protocol. They allow applications to create and access remote files through function callinstead of needing to f
) this.width=650; "Width=" 1108 "height=" 323 "title=" 7.png "style=" Width:734px;height:190px;float:none; "src=" http ://s3.51cto.com/wyfs02/m02/49/4b/wkiom1qsqphrmzmtaahbokslfwk286.jpg "alt=" wkiom1qsqphrmzmtaahbokslfwk286.jpg "/ >When you return to the hosts interface, you see that the Z icon has turned green to indicate a successful monitoring.650) this.width=650; "Width=" "height=" 494 "title=" 8.png "style=" Width:736px;height:280px;float:none; "src=" http ://s3.51cto.com/wyfs02/m00/49/4b/
SVN Linux usesSVN Linux Client Update
[Root@ds svn]# SVN co svn://10.10.233.19/web1//svn/--username=mark1--password=mark1Chinese character error can be modified:
Export Lc_ctype= "en_US. UTF-8 "Export lc_all=List and view:
[Root@ds ~]# svn list svn://10.10.233.19/web1/--username=mark1--password=mark1--verbose2 Mark June 14 01:17./1 Mark 3 June 00:56 New Text D
Label: Download Zabbix installation package (Zabbix installation package contains ZABBIX_AGENTD client installation package, we only select ZABBIX_AGENTD Client installation)Zbbix Official website: http://www.zabbix.com/downloadClient actionsTips: Linux Software compilation installation requires two installation packages gcc gcc-c++ make can be installed online u
CactiIt is a network monitoring tool that I often use. It combines the advantages of LAMP to better serve you! Let's take a look at its specific configuration!
1. configuration of the snmp service in windows(1) Open "Control Panel"-"add deletion program"-"add deletion group"
In "management and monitoring tools", select "Simple Network Management Protocol (snmp )"
Click "Next" to start the installation. During the installation process, the i386 file (2) is required. Open "start"-"program"-"Manage
The MySQL remote client in Linux cannot be connected.
Prerequisites:It should be stated in advance that this is a security benefit. You cannot remotely log on to the initialized MySQL instance. To achieve logon, we strongly recommend that you create a user with a lower permission to log on remotely. Direct use of root users for remote logon poses a great risk. The database may be dropped by hackers every m
Write one of the simplest TCP communication clients. The code is as follows:#include The simplest TCP communication client for Linux network programming
Resolves an issue in which some directory access does not have permission after the Windows root login Linuxsamba. It should be the SELinux setup issue.The modification of SELinux is generally to terminate the service and operate as follows:To view the SELinux status:1,/usr/sbin/sestatus-v # #如果SELinux The status parameter is enabled is turned onSELinux status:enabled2. Getenforce # #也可以用这个命令检查To turn off SELinux:1, temporarily shut down (do not restart the machine):Setenforce 0 # #设置SELinux bec
1-linux basically comes with SVN2-Create SVN serverCreate a new server code warehouse# svnadmin Create ServersvnThis allows us to create a new version of the Repository serversvn in the ~/directory.3-Modifying the configuration fileSvnserve.conf[General]anon-access = Readauth-access = WritePassword-db = passwdauthz-db = Authzpasswd== sallyssecretusername // Modify to the desired user nameAuthz= USERNAME[SERVERSVN:/] //SERVERSVN must be svn://local
Package: subversion-1.8.10.tar.gzSubversion-deps-1.6.9.tar.gzInstall dependency Packages First:--WITH-APR and--with-apr-utilCD subversion-1.6.9/apr/./configure--prefix=/usr/local/aprmakemake INSTALLCD subversion-1.6.9/apr-util/./ Configure--prefix=/usr/local/apr-util--with-apr=/usr/local/apr/makemake InstallDownload Sqllite source package, unzip and go to the folder, copy the sqlite3.c file to/subversion-1.6.1/sqlite-amalgamation/If this folder is not available, you can createMkdir.. /SUBVERSION
VPN Client Connection Linux server access slows down how to solve
There are three ways to solve the problem:
Method One: Edit pptpd source code, increase MTU;
Method Two: Use a script to increase the MTU after the PPTP interface is connected to the up;
Method III: Do not use MPPE encryption;
The first, although fundamentally solves the problem, but because the level problem gives up; the third becaus
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.