This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # By default, only GCC 4.8 is installed with devtools on Centos7. | |
| # So here we will install a recent version of GCC. | |
| # Source: https://linuxize.com/post/how-to-install-gcc-compiler-on-centos-7/ | |
| # 1. Install the SCL. | |
| sudo yum install centos-release-scl | |
| # 2. See what versions are available. | |
| sudo yum search devtoolset |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/lib/systemd/system/myservice.service | |
| # | |
| # systemctl daemon-reload | |
| # systemctl enable myservice.service | |
| # systemctl start myservice.service | |
| # | |
| [Unit] | |
| Description=Service | |
| ConditionPathExists=/path/to/web/folder | |
| After=network.target |