編譯紀錄2
發表於(2021-03-28 06:01:16) 閱讀(
1101) | 評論(
1)
0人收藏此文章,
列出開機執行的service
systemctl list-unit-files --type=service --state=enabled
-------------------------------------------------
切換 init
ln -fs /lib/systemd/system/graphical.target /etc/systemd/system/default.target
ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
-------------------------------------------------
chmod +x /etc/rc.d/rc.local
systemctl enable rc-local
systemctl start rc-local
systemctl stop firewalld
-------------------------------------------------
ntpdate -s time.stdtime.gov.tw
-------------------------------------------------
dnf groupinstall "C Development Tools and Libraries"
dnf group install 'Development Tools'
dnf install cmake
-------------------------------------------------
mysql
cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mariadb-10.5.9 \
-DMYSQL_DATADIR=/home/mysql \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DWITH_ARCHIVE_STORAGE_ENGINE=1 \
-DWITH_BLACKHOLE_STORAGE_ENGINE=1 \
-DWITH_READLINE=1 \
-DWITH_SSL=bundled \
-DWITH_ZLIB=system \
-DWITH_LIBWRAP=0 \
-DMYSQL_UNIX_ADDR=/tmp/mysql.sock \
-DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci
-------------------------------------------------
PHP
./configure --prefix=/usr/local/php7.2.3 --with-config-file-path=/etc \
--with-config-file-scan-dir=/etc/php.d --enable-mbstring --enable-zip \
--enable-bcmath --enable-pcntl --enable-ftp --enable-exif \
--enable-calendar --enable-sysvmsg --enable-sysvsem --enable-sysvshm \
--enable-wddx --with-curl --with-iconv --with-gd --with-jpeg-dir=/usr \
--with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr \
--with-freetype-dir=/usr --enable-gd-jis-conv --with-openssl \
--enable-mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd \
--with-gettext=/usr --with-zlib=/usr --with-bz2=/usr --enable-fpm \
--enable-sockets --enable-shmop --enable-xml --with-libxml-dir=/usr
--------------------------------------------------
NGINX
./configure --prefix=/usr/local/nginx \
--sbin-path=/usr/local/nginx/nginx \
--conf-path=/usr/local/nginx/conf/nginx.conf \
--error-log-path=/usr/local/nginx/logs/error.log \
--http-log-path=/usr/local/nginx/logs/access.log \
--pid-path=/usr/local/nginx/logs/nginx.pid \
--lock-path=/usr/local/nginx/logs/nginx.lock \
--with-http_ssl_module --with-pcre \
--add-module=/source/nginx-1.13.10/headers-more-nginx-module-master