安装依赖
yum -y install gcc automake autoconf libtool make yum -y install pcre-devel openssl openssl-devel gd-devel gcc gcc-c++ yasm-1.3.0 安装 cd yasm-1.3.0 ./configure make && make install
安装ffmpeg
方法1 cd ffmpeg-xxx ./configure --prefix=/usr/local/ffmpeg make && make install ln /usr/local/ffmpeg/bin/ffmpeg /usr/bin/ffmpeg ln /usr/local/ffmpeg/bin/ffprobe /usr/bin/ffprobe 方法2 sudo dnf install epel-release sudo yum config-manager --set-enabled powertools sudo yum config-manager --add-repo=https://negativo17.org/repos/epel-multimedia.repo sudo dnf install ffmpeg ffmpeg -version
nginx安装
http://nginx.org/download/ 下载版本
GitHub - arut/nginx-rtmp-module: NGINX-based Media Streaming Server rtmp模块下载
yum -y install openssl openssl-devel #若没有安装依赖执行此步
./configure –prefix=/usr/local/nginx –add-module=/root/nginx-rtmp-module-master
make && make install
如果启动失败尝试下面命令 yum -y install compat-openssl10 # systemctl stop firewalld # systemctl disable firewalld
配置帮助
https://nginx.org/en/docs/http/ngx_http_core_module.html#directives
跨域问题:
http中增加
add_header Access-Control-Allow-Origin *;
安装python3
dnf -y update dnf install python39 python3 --version
安装samba
yum install samba 配置 vi /etc/samba/smb.conf [global] workgroup = WORKGROUP server string = Samba Server %v netbios name = almaLinux-8 security = user map to guest = bad user dns proxy = no ntlm auth = true [opt] path = /opt browsable = yes writable = yes guest ok = yes read only = no 启动和设置自启动 systemctl start smb systemctl status smb systemctl enable smb 若samba启动了,但遇到权限问题,执行下面三步 sudo chmod -R 777 /opt sudo chown -R nobody:nobody /opt sudo chcon -t samba_share_t /opt 要关闭SELINUX : 很关键,不然也只能读不能写 setenforce 0 #临时关闭 # vi /etc/sysconfig/selinux then reboot 永久关闭 SELINUX=permissive # getenforce #查看状态 Permissive #这个状态就可写了
FTP服务器
安装 yum -y install vsftpd
配置,若不配置端口则默认端口如下, • 20端口用于建立数据连接,并传输文件数据 • 21端口用于建立控制连接,并传输FTP控制命令 vi /etc/vsftpd/vsftpd.conf pam_service_name=vsftpd userlist_enable=NO tcp_wrappers=YES #ftp访问目录 local_root=/home/ftproot #被动模式 pasv_enable=YES #高端口 pasv_min_port=65000 pasv_max_port=65010 用户和文件权限 useradd ftpseven -s /sbin/nologin -d /home/ftproot passwd ftpseven chown -R ftpseven /home/ftproot chmod 777 /home/ftproot echo 'ftpseven' >> /etc/vsftpd/user_lis 若selinux被禁用 vim /etc/pam.d/vsftpd 注释掉如下内容 #auth required pam_shells.so #防火墙设置 systemctl stop firewalld firewall-cmd --permanent --zone=public --add-port=21/tcp firewall-cmd --permanent --zone=public --add-port=65000-65010/tcp firewall-cmd --reload #重新加载 firewall-cmd --zone=public --list-port #参考开发端口 #firewall-cmd --permanent --zone=public --remove-port=8886/tcp #禁用端口 #开机启动 systemctl enable vsftpd.service #重启服务 systemctl restart vsftpd.service #启动 systemctl start vsftpd.service #停止 systemctl stop vsftpd.service #状态 systemctl status vsftpd.service
设置sftp
vi /etc/ssh/sftpd_config 放开以下两个配置,并将其设置大一点 MaxSessions 200 MaxStartups 100:30:200 systemctl restart sshd
安装jenkins
https://www.cnblogs.com/idccoupon/p/15126770.html
磁盘空间修改
参考:Centos7 修改硬盘分区大小_centos7磁盘更改分区-CSDN博客
umount /home lvremove /dev/mapper/centos-home lvextend -L +500G /dev/mapper/centos-root xfs_growfs /dev/mapper/centos-root df -h /dev/mapper/centos-root 550G 7.0G 544G 2% / #增加了500G lvcreate -L 480G -n home centos mkfs.xfs /dev/centos/home mount /dev/centos/home /home df -h /dev/mapper/centos-root 550G 7.0G 544G 2% / /dev/mapper/centos-home 480G 33M 480G 1% /home #home恢复正常
© 版权声明
文章版权归作者所有,未经允许请勿转载。
相关文章
没有相关内容!
暂无评论...