vi /usr/lib/systemd/system/rc-local.service [Unit] Description=/etc/rc.d/rc.local Compatibility Documentation=man:systemd-rc-local-generator(8) ConditionFileIsExecutable=/etc/rc.d/rc.local After=network.target After=network-online.target [Service] Type=forking ExecStart=/etc/rc.d/rc.local start TimeoutSec=0 RemainAfterExit=yes GuessMainPID=no [Install] WantedBy=multi-user.target -------------------------------------- vi /etc/rc.d/rc.local mount /dev/sdc1 /data1TB3 mount -t nfs 1.1.1.49:/ /owl49 -------------------------------------- chmod 755 /etc/rc.d/rc.local -------------------------------------- systemctl enable rc-local.service -------------------------------------- Created symlink […]
mariadb-10.3 : enum empty insert error Hint : STRICT_TRANS_TABLES
mysql -uroot -p -e "show variables like 'sql_mode';" sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' remove STRICT_TRANS_TABLES mysql -uroot -p -e "SET GLOBAL sql_mode = 'ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';"
Fedora 31 : firewall-cmd : ImportError undefined symbol: XML_SetHashSalt Hint
LD_LIBRARY_PATH problem! lib64 vs old lib 32 conflict. # firewall-cmd -------------------------------------- Traceback (most recent call last): File "/usr/bin/firewall-cmd", line 31, in <module> from firewall.client import FirewallClient, FirewallClientIPSetSettings, \ File "/usr/lib/python3.7/site-packages/firewall/client.py", line 28, in <module> import dbus.mainloop.glib File "/usr/lib64/python3.7/site-packages/dbus/__init__.py", line 95, in <module> from dbus._dbus import […]
php7 : barcode39 debug Hint : $$bars[$i][4]
//imagefilledrectangle($img, $bars[$i][0], $bars[$i][1], $bars[$i][2], $bars[$i][3], $$bars[$i][4]); imagefilledrectangle($img, $bars[$i][0], $bars[$i][1], $bars[$i][2], $bars[$i][3], ${$bars[$i][4]});
php7 : display_errors = Off
vi /etc/php.ini display_errors = Off systemctl restart php-fpm.service tail -f /var/log/php-fpm/*
Fedora 31 : php7 : runkit7 install Hint
Fedora 31 : php7 : runkit7 install Hint runkit_constant_redefine yum whatprovides pecl yum install php-pear yum whatprovides make yum install git yum whatprovides git yum install make ///git clone https://github.com/zenovich/runkit.git => php5 git clone https://github.com/runkit7/runkit7.git cd runkit pecl install package.xml Build process completed successfully Installing '/usr/lib64/php/modules/runkit7.so' install ok: […]
Set SSH Login without password Hint
ssh-keygen -t RSA ssh-copy-id -p22 testuser@192.168.0.200 ssh -p22 testuser@192.168.0.200
libnss-mysql to /etc/passwd script Hint
select CONCAT('adduser -u ', uid, ' -g ', gid, ' ', username,' -p ''', password,'''', ' -d ''', homedir, '''', ' -s ', shell) adduserScript , CONCAT('userdel ', username) userdelScript from users
Fedora 31 : yum whatprovides GET
yum install perl-libwww-perl
Fedora 31 : check /etc/fstab Hint : findmnt --verify --verbose
# findmnt --verify # findmnt --verify --verbose