A sample init script

A sample init script i am using this to “service” manage zeppelin which is installed to “/opt/zeppelin-0.7.0-bin-all and the start command is /opt/zeppelin-0.7.0-bin-all/bin/zeppelin-daemon.sh start change to suit your situation. script below. #!/bin/sh # Available run levels:     2 3 4 5 # Stopped run levels:      0 1 6 dir=“/opt/zeppelin-0.7.0-bin-all” cmd=“/opt/zeppelin-0.7.0-bin-all/bin/zeppelin-daemon.sh start” user=“” …

How to install Gnome GUI on RHEL/Centos 7

Make sure your yum repositories is configured. then, install the following # yum groupinstall “GNOME Desktop” “Graphical Administration Tools” OR # yum groupinstall “Server with GUI” Next, you want to enable default runlevel as the graphical target (this would be /etc/inittab on Centos 6) by running the below # ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target And then …

How to open port 80 on Centos7

To open port 80 in the firewall, run the following……….. [root@srv ]# firewall-cmd –permanent –zone=public –add-port=80/tcp Next, you want to reload the firewall with the following command [root@srv ]# firewall-cmd –reload You can verify this by running the following, [root@srv ]# firewall-cmd –zone=public –query-port=80/tcp