今天是:2025年4月5日 星期六
记住用户名密码
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | #install libs yum -y update yum install -y curl zip unzip wget openssl-devel gcc-c++ make autoconf git passwd #install php rpm -Uvh https: //dl .fedoraproject.org /pub/epel/epel-release-latest-8 .noarch.rpm rpm -Uvh http: //rpms .remirepo.net /enterprise/remi-release-8 .rpm yum install -y php74 php74-php php74-php-devel php74-php-bcmath php74-php-cli php74-php-common php74-php-gd php74-php-json php74-php-mbstring php74-php-xml rm -rf /usr/bin/php && ln -s /opt/remi/php74/root/usr/bin/php /usr/bin/php \ && rm -rf /usr/bin/phpize && ln -s /opt/remi/php74/root/usr/bin/phpize /usr/bin/phpize \ && rm -rf /usr/bin/php-config && ln -s /opt/remi/php74/root/usr/bin/php-config /usr/bin/php-config # composer curl -sS https: //getcomposer .org /installer | php \ && mv composer.phar /usr/bin/composer && chmod +x /usr/bin/composer # use aliyun composer composer config -g repo.packagist composer https: //mirrors .aliyun.com /composer/ #安装ssh服务 yum install -y openssh-server mkdir -p /var//sshd mkdir -p /root/ . ssh #取消pam限制 sed -ri \ "s/session required pam_loginuid.so/#session required pam_loginuid.so/g" /etc/pam .d /sshd wget https: //github .com /swoole/swoole-src/archive/v4 .4.23. tar .gz -O swoole. tar .gz \ && mkdir -p swoole \ && tar -xf swoole. tar .gz -C swoole --strip-components=1 \ && rm -rf swoole. tar .gz \ && ( \ cd swoole \ && phpize \ && . /configure -- enable -openssl \ && make \ && make install \ ) \ && sed -i "2i extension=swoole.so" `php -i | grep php.ini | awk -F "=>" '{print $2}' | grep php.ini` \ && rm -rf swoole wget https: //repo .mysql.com //mysql80-community-release-el8-1 .noarch.rpm yum install mysql mysql-server -y systemctl start mysqld yum install nginx -y systemctl start nginx yum install redis -y systemctl start redis #ALTER USER USER() IDENTIFIED BY '123456'; #use mysql; #update user set host='%' where user = 'root'; #flush privileges; |
目前有 0 条留言 其中:访客:0 条, 博主:0 条