离线安装
./configure --prefix=/usr/local/keepalived
make && make install
./configure --prefix=/usr/local/nginx
make && make install
scp -r /usr/local/keepalived/ root@10.30.92.71:/usr/local
scp -r /usr/local/nginx root@10.30.92.71:/usr/local
依赖库问题
排查步骤
ldd /usr/sbin/keepalived
ldd是Linux中的一个重要命令,用于打印可执行文件或共享库所依赖的动态链接库信息
(1) 查看可执行文件所依赖的库:
ldd /path/to/executable
(2) 查看共享库的依赖关系:
ldd /path/to/shared_library.so
(3) 显示详细的依赖库信息:
ldd -v /path/to/executable
nginx支持开启SSL模块
/usr/local/nginx/sbin/nginx -V
默认nginx编译不支持ssl
重新编译安装
./configure --prefix=/usr/local/nginx --with-http_ssl_module
make && make install
nginx集成fdfs
操作步骤
scp -r /etc/fdfs secure@10.30.92.73:/home/secure/fdfs/
scp /usr/bin/fdfs_trackerd secure@10.30.92.73:/home/secure/fdfs
scp /usr/bin/fdfs_storaged secure@10.30.92.73:/home/secure/fdfs
mkdir -p /app/data01/fastdfs
cp -r /home/secure/fdfs /etc/
cp /home/secure/fdfs/fdfs_storaged /usr/bin/
cp /home/secure/fdfs/fdfs_trackerd /usr/bin/
vi /etc/fdfs/storage.conf 修改配置文件中的server ip
/usr/bin/fdfs_storaged /etc/fdfs/storage.conf start
/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf start