"lamp"


~ yum -y install httpd mysql mysql-server php php-mysql php-gd php-mbstring
启动服务

~ service httpd start
~ service mysqld start


开启PHP错误提示:1)vi /etc/php.ini 2)设置display_errors = On(530行左右)
关闭防火墙 service iptables stop
关闭selinux vi /etc/selinux/config
PHP代码默认放在/var/www/html
设置自启动

~ chkconfig httpd --level 2345 on
~ chkconfig mysqld --level 2345 on



"lnmp"


~ yum -y install nginx mysql mysql-server php php-mysql php-gd php-mbstring php-fpm


启动服务

~ service nginx start
~ service mysqld start
~ service php-fpm start


设置自启动

~ chkconfig nginx --level 2345 on
~ chkconfig mysqld --level 2345 on
~ chkconfig php-fpm --level 2345 on


apache-kafka 和apache-zookeeper 设置 systemd服务和开机启动

参考:https://gist.github.com/vipmax/9ceeaa02932ba276fa810c923dbcbd4f 启动命令 #启动 $ systemctl daemon-reload $ systemctl enable kafka-zookeeper.s...

阅读全文

ffmpeg下载m3u8为mp4

ffmpeg -i "https://www.test.com/a.m3u8" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 test.mp4

阅读全文

docker安装 elasticsearch,filebeat,kibana 日志系统

参考文档 参考:https://github.com/maxyermayank/docker-compose-elasticsearch-kibana/blob/master/docker-compose.yml 参考:https://www.elastic.co/guid...

阅读全文

欢迎留言