1. Display the contents of the Demo1 file on the screen via Java.net.URL1 PackageHdfs;2 ImportJava.io.InputStream;3 ImportJava.net.URL;4 Importorg.apache.hadoop.fs.FsUrlStreamHandlerFactory;5 Importorg.apache.hadoop.io.IOUtils;6 7 Public classJardemo {8 Static{9Url.seturlstreamhandlerfactory (Newfsurlstreamhandlerfactory ());Ten } One Public Static voidMain (string[] args) { AInputStream in =NULL; - Try { -in=NewURL (args[0]). OpenStream (); theIoutils.copybytes (in, Syste
Install linux basic Edition Software
The redhat5 Software Package uses Yum management, so you need to connect to the Internet if you need to add software. to install the software from a CD, follow these steps:
1,Attach a cd
Create the directory mkdir/home/demo/rhel5
Mount disk image file Mount-o loop rhel-server-5.4-i386-dvd.iso/home/demo/rhel5
Or use a cdMount/dev/CDROM/home/demo/rhel5
2,YumSet
Ø CD/etc/yum. Repos. d
Add a local. Repo
Install BT client transmission on Linux Centos systemTransmission is a BitTorrent client, characterized by a cross-platform backend and a concise user interface on it, licensed under the MIT License and the GNU General Public License dual license, thus being a free software and also by many Linux distributions, includi
Introduction to Windows SSH client PuttyIntroduction of PuttyPutty is a free and compact Win32 platform for Telnet,rlogin and SSH clients. Its main program is only 364k, but the functional wire is not inferior to the commercial Telnet tool.Official homepage:http://www.chiark.greenend.org.uk/~sgtatham/putty/Putty is a handy Telnet tool for Linux, for reasons such as:1. Completely free telnet and SSH
sqlplus:error while loading shared libraries:libsqlplus.so:cannot op En shared object file:no such file or directoryIf there is a problem above, it means that your environment variable is not set. Please refer to: 4th.[Email protected] lib]# sqlplus System/[email protected]Sql*plus:release 10.2.0.4.0-production on Sun 1 12:20:08 2010Copyright (c) 1982, Oracle. All rights Reserved.Connected to:oracle Database 10g Enterprise Edition Release 10.2.0.1.0-production with the partitioning, OLAP and Da
First, Socket basic knowledge 1. Socket functionSocket hierarchyThe socket essentially provides the endpoint of the process communication, before the process communicates, the two parties must first create an endpoint individually, otherwise there is no way to establish contact and communicate with each other.Each socket is a semi-related description:{protocol, local address, local port}Description of the complete socket:{protocol, local address, local port, remote address, remote port}2. Socket
Article Title: Use the CVS client with an interface in Linux. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open source, and other basic categories. Use cvs clients with interfaces in
1. Download the symantec_endpoint_protection_12.1.5_linux_client_en and unzip the Sep-deb.zip2. If you direct sudo./install.sh-i, the following error will be reported starting to install the Symantec Endpoint Protection for Linux performing pre-check ...Error: installation requires Oracle Java 1.5 or later whose owner is Superuser. Install the correct version with Superuser and Java cryptography Extension (JCE) Unlimited Strength Jurisdiction Po Licy
Tags: Zabbix linux agent## configuration of the Linux clientZabbix-agent Installation Scripts"'bash#!/bin/bash# Add Zabbix3yum SourceCat > /etc/yum.repos.d/zabbix.repo EOF[zabbix3.0]name=zabbix3.0baseurl=http://mirrors.aliyun.com/zabbix/zabbix/3.0/rhel/7/x86_64/Gpgcheck=0Eof#给被监控主机安装zabbix客户端Yum Install Zabbix-agent-y```Edit/etc/zabbix/zabbix_agentd.conf"'bash# which hosts are allowed to monitor this host
Enter the installation directory/usr/local/mongodb/bin, ./mongod #启动服务端 Remote Client link 1). Because MongoDB uses the default short time of 27017, but the Linux firewall is blocked by 27017 port access, so you need to open the Linux firewall 27017 port Vi/etc/sysconfig/iptables #查看防火墙配置表 The changes are as follows: #特别提示:
How to configure the openvpn client in linux, link the server through ssh, and openvpnssh
Openvpn InstallationApt-get install openvpnOpenvpn ConfigurationCopy the ovpn configuration file to the/etc/openvpn directory.Openvpn connection to the VPN ServerOpenvpn -- config/etc/openvpn/*. vnpInstall and configure openvpn on macHttp://www.lovessh.com/macosx-openvpn-client
Ubuntu14.04 + mutt + msmtp configure the command line mail client in linux, muttmsmtpInstall software msmtp mutt
apt-get install -y msmtp muttConfigure msmtp
After the installation is complete, configure msmtp. The default configuration file varies with the operating system version.msmtp --version.
# msmtp --versionmsmtp version 1.4.31Platform: x86_64-pc-linux-gn
Symptom:
You cannot log on from a common user on a Linux machine. It takes a long time to log on and cannot log on,
When you manually mount the/home directory of the NIS server, the following error occurs:
Do_ypcall: clnt_call: RPC: unable to send;Errno = network is unreachable do_ypcall
Check and find that this machine is an NIS client machine.
Solution:
Start services related to the NIS server.
/Etc/init.
Linux XMPP server Tigase (Spark client test), xmpptigase
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 prepareJava environmentAndDatabase (MySQL is used in this article).
Tigase download: https://projects.tigase.org/projects/tigase-server/files
Download:Tigase-ser
Bypy-Python client of Baidu cloud/Baidu Network Disk
: Https://github.com/houtianze/bypy
Copyright 2013 Hou Tianze (GitHub: houtianze, Twitter: @ ibic, G ++: + TianzeHou)
This is a Python client of Baidu cloud/Baidu Network Disk. The main purpose is to use 2 TB of Baidu cloud disk in Linux (command line. For example, you can use it on the Raspberry Pi. It provide
Using mutt + msmtp as the linux Mail Client these days, the leaders asked me to deploy a script written by the Development Department, and sent the attachment generated by the script to his mailbox via email. Let's get started, because the mail command has been used to send emails, but this time it won't work. Because the attachment is required. Someone told me that the mail command can contain attachments,
Install Oracle 10g client for Linux under fedora6
1. Ignore system check./Runinstaller-ignoresysprereqs
2. The error message "libxp. so.6" is missing.Yum-y install libxp. so.6
Run again. OK. The installation page is displayed.
3. Oracle 10g does not support Chinese characters by defaultChange Lang in/etc/sysconfig/i18n to EN during installation.
4. Oracle client
Http://copr.fedoraproject.org/coprs/mosquito/myrepo/repo/fedora-20/mosquito-myrepo-fedora-20.repo[Mosquito-myrepo]NAME=COPR repo for Myrepo owned by Mosquitobaseurl=https://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo/fedora-$releasever-$basearch/Skip_if_unavailable=trueGpgcheck=0Enabled=1http://copr.fedoraproject.org/coprs/mosquito/myrepo/Developer Homepage: https://github.com/LiuLang/bcloud-packagesOriginal link: http://www.tuicool.com/articles/RJvMfeqDownload Bcloud related repo fi
(1) The server segment code is as follows:#include (2) Client code: #include (3) Execution procedureStreaming socket Client server-side code implementation based on Linux platform
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.