In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Install Perl
A command is basically done, if the environment is connected to the Internet.
# yum install perl*
If you can't connect to the Internet, you can download the latest source package for compilation and installation.
# wget # tar-xzf perl-5.24.1.tar.gz # cd perl-5.24.1 #. / Configure-des-Dprefix=$HOME/localperl # make # make test # make install
View the successfully installed version of Perl:
[root@controller] # perl-vThis is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux-thread-multi (with 34 registered patches, see perl-V for more detail) Copyright 1987-2012, Larry WallPerl may be copied only under the terms of either the Artistic License or theGNU General Public License, which may be found in the Perl 5 source kit.Complete documentation for Perl, including FAQ lists, should be found onthis system using "man perl" or "perldoc perl". If you have access to theInternet, point your browser at http://www.perl.org/, the Perl Home Page. Write the first Perl program
Create a Perl script
# touch test.pl
Write Hello World programs
#! / usr/bin/perlprint "Hello World!\ n"
Executive program
[root@controller ~] # perl test.pl Hello World!
Success!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.