dooooooduo

CentOS7 LNMP installation commands

Dec 4th, 2016
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.96 KB | None | 0 0
  1. rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
  2. rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
  3. sudo yum install vim epel-release git nginx rsync wget zip unzip php70w php70w-opcache php70w-devel php70w-fpm php70w-common php70w-gd php70w-mysql php70w-mcrypt php70w-mbstring php70w-xml php70w-soap mariadb mariadb-server gcc g++ -y
  4. sudo systemctl enable nginx
  5. sudo systemctl enable firewalld
  6. sudo systemctl enable mariadb.service
  7. sudo systemctl enable php-fpm
  8. sudo systemctl start nginx
  9. sudo systemctl start firewalld
  10. sudo systemctl start mariadb.service
  11. sudo systemctl start php-fpm
  12. sudo firewall-cmd --permanent --zone=public --add-service=http
  13. sudo firewall-cmd --permanent --zone=public --add-service=https
  14. sudo firewall-cmd --permanent --zone=public --add-port=9502/tcp
  15. sudo firewall-cmd --reload
  16.  
  17. sudo /usr/bin/mysql_secure_installation
  18. sudo vim /etc/selinux/config
  19.  
  20. # swoole configure make make install
Add Comment
Please, Sign In to add comment