find exclude
find ! -path "./home/*" -name something
Category Archives: linux
Containerfile build
vim Containerfile
FROM fedora
RUN dnf -y update && dnf -y install httpd && dnf clean all
sudo podman build --tag httpd .
sudo podman run --rm localhost/httpd rpm -q httpd
httpd-2.4.43-5.fc32.x86_64
podman read logs
sudo podman run --name web1 -dt -p 80:80 docker.io/library/httpd httpd -D FOREGROUND
bf5a2456f8f7e878405097402fe3ed32eb6f9e7b677ac09df1cce841cd7bf527
links -dump http://localhost
It works!
sudo podman container logs -f web1
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 10.88.0.33. Set the 'ServerName' directive globally to suppress this message
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 10.88.0.33. Set the 'ServerName' directive globally to suppress this message
[Mon Aug 17 20:32:18.221008 2020] [mpm_event:notice] [pid 1:tid 139846430241920] AH00489: Apache/2.4.46 (Unix) configured -- resuming normal operations
[Mon Aug 17 20:32:18.221243 2020] [core:notice] [pid 1:tid 139846430241920] AH00094: Command line: 'httpd -D FOREGROUND'
10.88.0.1 - - [17/Aug/2020:20:32:45 +0000] "GET / HTTP/1.1" 304 -
10.88.0.1 - - [17/Aug/2020:20:32:45 +0000] "GET / HTTP/1.1" 304 -
10.88.0.1 - - [17/Aug/2020:20:32:48 +0000] "GET / HTTP/1.1" 304 -
new pod using run
sudo podman run -dt --pod new:nginx -p 32597:80 quay.io/libpod/alpine_nginx:latest
add container to pod
sudo podman pod create
4d03c9f1ef5f8f944cb61d598084a1191802694e59e7438b36e1dfecdaa04fe3
sudo podman ps -a --pod
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES POD ID PODNAME
e14f13b36519 k8s.gcr.io/pause:3.2 About a minute ago Created 4d03c9f1ef5f-infra 4d03c9f1ef5f loving_northcutt
sudo podman run -dt --pod loving_northcutt docker.io/library/alpine:latest top
sudo podman ps -a --pod
269ea28c6217 docker.io/library/alpine:latest top 14 seconds ago Up 14 seconds ago strange_hertz 4d03c9f1ef5f loving_northcutt
e14f13b36519 k8s.gcr.io/pause:3.2 3 minutes ago Up 14 seconds ago 4d03c9f1ef5f-infra 4d03c9f1ef5f loving_northcutt
sudo podman pod ps
POD ID NAME STATUS CREATED # OF CONTAINERS INFRA ID
4d03c9f1ef5f loving_northcutt Running 6 minutes ago 2 e14f13b36519
2 containers, it like array for containers
centos 8 lsphp74
yum install http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el8.noarch.rpm
dnf install lsphp74 lsphp74-mysqlnd lsphp74-process lsphp74-mbstring lsphp74-mcrypt lsphp74-gd lsphp74-opcache lsphp74-bcmath lsphp74-pdo lsphp74-common lsphp74-xml lsphp74-json
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘identified by
CREATE USER 'user'@'%' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON user.* TO 'user'@'%';
421 Unable to read the indexed puredb file (or old format detected) – Try pure-pw mkdb
#PureDB @sysconfigdir@/pureftpd.pdb
PureDB /etc/pure-ftpd/pureftpd.pdb
AH01630: client denied by server configuration:
<Directory /some/path/to/web.com> Require all granted </Directory>
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
mysql> uninstall plugin validate_password;
Query OK, 0 rows affected (0.01 sec)
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
mysql_secure_installation
Securing the MySQL server deployment.
[WARNING] Server signature does not match the license key
/usr/local/lsws/bin/lswsctrl start
[WARNING] Server signature does not match the license key #2.
Please request a new license key!
[WARNING] Server signature does not match the license key #2.
Please request a new license key!
2020-08-17 11:24:47.232298 [NOTICE] Memory size is: 4718592KB.
2020-08-17 11:24:47.722767 [ERROR] [LICENSE] License key operation failure: EXCEPTION LR.AM: Invalid license key file
[FATAL] license problem, back to Apache!
2020-08-17 11:24:48.745494 [NOTICE] Switch back to Apache …
[ERROR] Failed to start litespeed!
[ERROR] Cannot detect control panel environment. Only cPanel WHM, Plesk, DirectAdmin are checked for now.
[WARNING] Server signature does not match the license key #2.
Please request a new license key!
[WARNING] Server signature does not match the license key #2.
Please request a new license key!
2020-08-17 11:24:51.954129 [NOTICE] Memory size is: 4718592KB.
2020-08-17 11:24:52.413312 [ERROR] [LICENSE] License key operation failure: EXCEPTION LR.AM: Invalid license key file
[FATAL] license problem, back to Apache!
2020-08-17 11:24:53.441160 [NOTICE] Switch back to Apache …
[ERROR] Failed to start litespeed!
/usr/local/lsws/bin/lshttpd -r
/usr/local/lsws/bin/lshttpd -V
/usr/local/lsws/bin/lswsctrl restart
Failed to register the CT: PRL_ERR_VZCTL_OPERATION_FAIL
Failed to register the CT: PRL_ERR_VZCTL_OPERATION_FAILED (Details: Creating OS template cache for centos-8-x86_64 template
Can’t open /proc/sys/kernel/virt_osrelease: No such file or directory
Error: /usr/share/vzyum/bin/yum failed, exitcode=1
VE_PRIVATE is not set
Creation of Container private area failed
Make sure you are using vz7 kernel:
uname -a | grep vz7
Linux CentOS-78-64-minimal 3.10.0-1127.8.2.vz7.151.14 #1 SMP Tue Jun 9 12:58:54 MSK 2020 x86_64 x86_64 x86_64 GNU/Linux
new-authz error: {“type”:”urn:acme:error:unauthorized”,”detail”:”Error creating new authz :: Validations for new domains are disabled in the V1 API (https://community.letsencrypt.org/t/end-of-life-plan-for-acmev1/88430)”,”status”: 403
acme.sh change api version
acme.sh v1 to v2
su - acme -s /bin/bash
mkdir temp && git clone https://github.com/acmesh-official/acme.sh.git temp
mv acme.sh acme.sh_backup && mv temp/acme.sh .
./acme.sh/acme.sh --issue
/var/run/sshd missing after reboot openvz
Missing privilege separation directory: /var/run/sshd error
If you are updating SSH, please make sure /usr/lib/tmpfiles.d/sshd.conf have: d /run/sshd 0755 root root