in This Tutorial you will Learn "How To install PhantomJS & Example Scripts for PhantomJS on Rocky Linux 8.5"
PhantomJS is a headless web browser scriptable with JavaScript. It runs on Windows, macOS, Linux, and FreeBSD.
Homepage - https://phantomjs.org/
________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.60 |Hostname - server.yourdomain.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; dnf groupinstall "Development Tools" -y
dnf module enable nodejs:14 -y ; dnf install nodejs npm -y ; node --version ; npm --version
dnf install glibc fontconfig freetype freetype-devel fontconfig-devel wget bzip2 -y
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
tar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2 -C /usr/local/share/
sudo ln -sf /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin
phantomjs --version
phantomjs
Test PhantomJS
nano short.js
console.log('Hello, world!');
phantom.exit();
phantomjs short.js
__________________________________________________________________________________________
Saturday, February 5, 2022
How To install PhantomJS & Example Scripts for PhantomJS on Rocky Linux 8.5
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment