RedHat, CentOS

16 Juil

Yum

yum history list
yum history list all
yum history info id
yum history undo id
yum history redo id
yum list available
yum install yum-plugin-versionlock
yum versionlock grub2*
yum versionlock list

Firewalld

firewall-cmd --list-all
firewall-cmd --list-all-zones
firewall-cmd --list-rich-rules
firewall-cmd --get-active-zones
firewall-cmd --get-zones
firewall-cmd --set-log-denied=
firewall-cmd --get-services

Elasticsearch

curl localhost:9200/_cluster/health?pretty
curl localhost:9200/_cluster/settings?pretty
curl localhost:9200/_cat/shards?v
curl localhost:9200
curl localhost:9200/_nodes/_all/settings?pretty
curl -X PUT "localhost:9200/_cluster/settings?pretty" -H 'Content-Type: application/json' -d '{"persistent":{"cluster.routing.allocation.enable": "primaries"}}'
curl -X PUT "localhost:9200/_cluster/settings?pretty" -H 'Content-Type: application/json' -d '{"persistent":{"cluster.routing.allocation.enable": "all"}}'

Pip

pip install package
pip install -U package
pip install package==version
pip install package==
pip uninstall package
pip list
pip list -o
pip show

Virtualenv

workon virtualenv_name
lsvirtualenv
mkvirtualenv virtualenv_name
rmvirtualenv virtualenv_name

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *