On Rapsberry Pi, Using Archlinux to build LNMP, linux, Nginx, MySQL, PHP

本文记录了在ArchLinux环境下使用pacman命令安装MySQL、PHP和Nginx的过程,包括依赖项解析、文件冲突检查及安装步骤,并提到了安装过程中的一些注意事项。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


pacman -S php mysql mysql-clients nginx


[root@alarmpi /]# pacman -S php mysql mysql-clients nginx
resolving dependencies...
looking for inter-conflicts...

Targets (8): geoip-1.4.8-2  geoip-database-20121105-1  libmysqlclient-5.5.29-1
             libxml2-2.8.0-1  mysql-5.5.29-1  mysql-clients-5.5.29-1
             nginx-1.2.6-1  php-5.4.10-1

Total Download Size:    16.75 MiB
Total Installed Size:   143.05 MiB

Proceed with installation? [Y/n] y
:: Retrieving packages from extra...
 libxml2-2.8.0-1-armv6h  1321.7 KiB   116K/s 00:11 [######################] 100%
 php-5.4.10-1-armv6h        2.6 MiB   148K/s 00:18 [######################] 100%
 libmysqlclient-5.5....     2.8 MiB   130K/s 00:22 [######################] 100%
 mysql-clients-5.5.2...   742.8 KiB   109K/s 00:07 [######################] 100%
 mysql-5.5.29-1-armv6h      8.2 MiB   123K/s 01:09 [######################] 100%
 geoip-database-2012...   707.7 KiB   101K/s 00:07 [######################] 100%
 geoip-1.4.8-2-armv6h     115.5 KiB  71.1K/s 00:02 [######################] 100%
:: Retrieving packages from community...
 nginx-1.2.6-1-armv6h     309.0 KiB  65.9K/s 00:05 [######################] 100%
(8/8) checking package integrity                   [######################] 100%
(8/8) loading package files                        [######################] 100%
(8/8) checking for file conflicts                  [######################] 100%
(8/8) checking available disk space                [######################] 100%
(1/8) installing libxml2                           [######################] 100%
(2/8) installing php                               [######################] 100%
(3/8) installing libmysqlclient                    [######################] 100%
(4/8) installing mysql-clients                     [######################] 100%
(5/8) installing mysql                             [######################] 100%
WARNING: The host 'alarmpi' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
Installing MySQL system tables...
OK
Filling help tables...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h alarmpi password 'new-password'

Alternatively you can run:
/usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd /usr/mysql-test ; perl mysql-test-run.pl

Please report any problems with the /usr/scripts/mysqlbug script!

(6/8) installing geoip-database                    [######################] 100%
(7/8) installing geoip                             [######################] 100%
(8/8) installing nginx                             [######################] 100%


Installation finished.


( i need mysql-python for that i am learning python :D )



if you need python, then install python on it.

pamcan -S python mysql-python

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值