找回密碼
 立即註冊
搜索
熱搜: 活動 交友 discuz
查看: 572|回復: 0

Rocky Linux 8.5 最小安裝

[複製鏈接]

261

主題

40

回帖

1186

積分

管理員

積分
1186
發表於 2023-5-25 09:13:53 | 顯示全部樓層 |閱讀模式
#Base
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
sed -i 's/#Storage=auto/Storage=persistent/g' /etc/systemd/journald.conf
dnf config-manager --set-enabled plus
dnf config-manager --set-enabled powertools
#rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf install epel-release
dnf install  lrzsz*  wget* postfix* proftpd proftpd-mysql*  ntp* telnet  libmcrypt* gcc* kernel-d* ntsysv samba4* traceroute*   rpcbind nfs-utils crontabs xz-* vim-enhanced gcc-c++  flex bison autoconf automake ncurses-devel zlib-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel libXpm-devel gettext-devel pam-devel kernel  ntfs-3g ImageMagick ImageMagick-devel -y
dnf install perl perl-Net-SSLeay openssl perl-IO-Tty  perl-Encode-Detect -y
rpm -ivh https://nchc.dl.sourceforge.net/project/webadmin/webmin/1.994/webmin-1.994-1.noarch.rpm
sed -i 's/ssl=1/ssl=0/g' /etc/webmin/miniserv.conf

#Remove  cockpit
systemctl stop cockpit
systemctl disable cockpit
dnf remove cockpit -y
firewall-cmd --permanent --remove-service=cockpit
rpm -e cockpit-system
rpm -e cockpit-bridge
rpm -e cockpit-ws
rm -rfv /run/cockpit
rm -rfv /etc/cockpit
rm -rfv /usr/share/cockpit
rm -rfv /var/lib/selinux/targeted/active/modules/100/cockpit
rm -rfv -f /usr/share/selinux/targeted/default/active/modules/100/cockpit








#Web
dnf install -y httpd
dnf install -y https://rpms.remirepo.net/enterprise/remi-release-8.rpm
dnf makecache
dnf install -y php56 php56-php-fpm php56-php-mysqli php56-php-xml php56-php-mbstring php56-php-pecl-imagick php56-php-gd php56-php-imap
dnf install -y php74 php74-php-fpm php74-php-mysqli php74-php-xml php74-php-mbstring php74-php-pecl-imagick php74-php-gd php74-php-imap
dnf install -y php81 php81-php-fpm php81-php-mysqli php81-php-xml php81-php-mbstring php81-php-pecl-imagick php81-php-gd php81-php-imap
systemctl enable httpd
systemctl enable php56-php-fpm
systemctl enable php74-php-fpm
systemctl enable php81-php-fpm

#Web PHP Log
echo "" > /var/opt/remi/php56/log/php-fpm/www-error.log
echo "" > /var/opt/remi/php74/log/php-fpm/www-error.log
echo "" > /var/opt/remi/php81/log/php-fpm/www-error.log
chown apache:apache /var/opt/remi/php56/log/php-fpm/www-error.log
chown apache:apache /var/opt/remi/php74/log/php-fpm/www-error.log
chown apache:apache /var/opt/remi/php81/log/php-fpm/www-error.log

chmod 777 /var/opt/remi/php56/log/php-fpm/www-error.log
chmod 777 /var/opt/remi/php74/log/php-fpm/www-error.log
chmod 777 /var/opt/remi/php81/log/php-fpm/www-error.log

ln /var/opt/remi/php56/log/php-fpm/www-error.log /var/log/httpd/php56.log
ln /var/opt/remi/php74/log/php-fpm/www-error.log /var/log/httpd/php74.log
ln /var/opt/remi/php81/log/php-fpm/www-error.log /var/log/httpd/php81.log



#MariaDB
curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash
dnf install MariaDB-server MariaDB-client MariaDB-backup
systemctl enable mariadb
sed -i 's/ProtectHome=true/ProtectHome=false/g'  /usr/lib/systemd/system/mariadb.service






systemctl enable smb
systemctl enable nmb
systemctl disable firewalld
dnf update -y
reboot
您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

Archiver|手機版|小黑屋|DoIT 科技論壇

GMT+8, 2025-9-18 10:53 , Processed in 0.013356 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回復 返回頂部 返回列表