安装armbian ngninx php mysql

21July

9:15 AM

165 次浏览

0 条评论

cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq
cpufreq-info
cat /proc/cpuinfo

温度
cat /sys/class/thermal/thermal_zone0/temp
cat /sys/class/hwmon/hwmon0/temp1_input
cat /etc/update-motd.d/30-armbian-sysinfo


欢迎信息
/etc/update-motd.d/30-armbian-sysinfo



安装nginx:apt-get install nginx

安装php:sudo apt-get install php7.4
sudo apt-get install php7.4-fpm
sudo apt-get install php7.4-mysql
sudo apt-get install php7.4-gd
sudo apt-get install php7.4-curl
sudo apt-get install php7.4-xml
sudo apt-get install php7.4-mbstring


systemctl start php7.4-fpm
systemctl enable php7.4-fpm  


安装MariaDB:sudo apt-get install mariadb-server

启动MariaDB

启动服务:systemctl start vsftpd.service
关闭服务:systemctl stop vsftpd.service
重启服务:systemctl restart vsftpd.service
显示服务的状态:systemctl status vsftpd.service
在开机时启用服务:systemctl enable vsftpd.service
在开机时禁用服务:systemctl disable vsftpd.service
查看服务是否开机启动:systemctl is-enabled vsftpd.service
查看已启动的服务列表:systemctl list-unit-files|grep enabled

查看启动失败的服务列表:systemctl --failed
————————————————
MariaDB配置  mysql_secure_installation
mysql -u root -p默认无密码,直接回
update mysql.user set password=PASSWORD("w1302") where User='root';

update user set password="w1302" where user='root';

ano -c /etc/nginx/sites-enabled/default
sudo apt-get remove --purge php7.4-fpm 卸载
重启 nginx服务

service nginx restart
systemctl status nginx.service

sudo systemctl restart nginx
sudo systemctl restart php7.4-fpm
安装nginx
apt-get install nginx

配置nginx配置文件
/etc/nginx/sites-enabled
cat /etc/nginx/sites-available/default

        location ~ \.php$ {
                include snippets/fastcgi-php.conf;
                # With php-fpm (or other unix sockets):
                fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
                # With php-cgi (or other tcp sockets):
                #fastcgi_pass 127.0.0.1:9000;
        }

即可

---------------------
sudo update-alternatives --config x-session-manager


留言评论
称呼
邮箱
网址