Skip to content

Instantly share code, notes, and snippets.

@alparslanozturk
Last active October 24, 2022 10:58
Show Gist options
  • Save alparslanozturk/bc5943ffae42120837c6b692e8fe6255 to your computer and use it in GitHub Desktop.
Save alparslanozturk/bc5943ffae42120837c6b692e8fe6255 to your computer and use it in GitHub Desktop.
nexus

find the top process .

ps -eo rss,pmem,pcpu,user,args| ( sed -u 1q; sort -k2 -r)

wsl Nexus kurulumu ve ULN repo testi


sudo apt install openjdk-8-jre-headless

wget https://download.sonatype.com/nexus/3/latest-unix.tar.gz

tar zxvf latest-unix.tar.gz

sudo mv nexus-3.42.0-01/ sonatype-work/ /opt/
adduser  nexus

yada look -> useradd -D

groupadd -g 1111 nexus
useradd -m -s /bin/bash -g test test
echo nexus:nexus |chpasswd

nexus   ALL=(ALL) NOPASSWD:ALL


cd /opt
sudo mv nexus-3.42.0-01/ nexus
sudo chown -R nexus: nexus/ sonatype-work/

vi /opt/nexus/bin/nexus  ( jre path )
vi /opt/nexus/bin/nexus.rc  ( runasuser )

sudo vi /etc/systemd/system/nexus.service
[Unit]
Description=nexus service
After=network.target

[Service]
Type=forking
LimitNOFILE=65536
ExecStart=/opt/nexus/bin/nexus start
ExecStop=/opt/nexus/bin/nexus stop
User=nexus
Restart=on-abort

[Install]
WantedBy=multi-user.target


cat /opt/sonatype-work/nexus3/admin.password
watch netstat -alnt
cat /opt/sonatype-work/nexus3/admin.password


image

image

image

YUM



yum-config-manager --disable \*



OTHER not


How can I mirror the Yum channels?
A:The latest YUM repository files are hosted at https://yum.oracle.com/mirror

To create local mirrors of repositories on yum.oracle.com, follow these directions:
Download the repository files for those repos you want to synchronize to /etc/yum.repos.d directory, using curl or wget
For example:
# wget https://yum.oracle.com/mirror/ol8/x86_64/oracle-linux-ol8-x86_64.repo -O /etc/yum.repos.d/oracle-linux-ol8-x86_64.repo
Or
# curl https://yum.oracle.com/mirror/ol8/x86_64/oracle-linux-ol8-x86_64.repo -o /etc/yum.repos.d/oracle-linux-ol8-x86_64.repo

In each .repo file, change enabled=0 to enabled=1 for the repositories you want to sync

If you plan to sync repositories for multiple architectures, be sure to update repository names to avoid duplicates

Start the download using the reposync command, for example:
Oracle Linux 8:
# dnf reposync --download-path <download path> --download-metadata

Oracle Linux 7:
# reposync --download_path <download path> --download-metadata

proxy not

How do I use Oracle Linux yum server if my system is behind a proxy server?
A: To configure yum to use a proxy for all users on a systen, add your proxy server details to /etc/yum.conf. Note that both a http://or https:// prefix and TCP port are required.

     proxy=http://proxy.mydomain.com:8080
If your proxy server requires authentication, add these settings to /etc/yum.conf:

      proxy_username=<proxy username>
      proxy_password=<proxy password>
To configure a proxy server for a single user or session, set the https_proxy or http_proxy environment variable and optionally add these settings to ~/.bash_profile. Note that a protocol prefix is optional:

      https_proxy=proxy.mydomain.com:8080
      export https_proxy
If you've configured proxy settings for a non-root user or session only, remember that many yum commands require root privileges. So, when using sudo, you must use -E to preserve the existing environment. For example:

      sudo -E yum install <some package>
      

Red Hat Satellite

  1. Manifest kurulan satellite sunucuya eklenir/çıkarılır...
  2. Katello agent kurulumu yapılmalıdır. yum localinstall -y http://satellite/katello-ca-consumer-latest.noarch.rpm ...
  3. Content > Activation keys bakılır.
subscription-manager register --org="FIRMA" --activationkey="RHEL7"
subscription-manager refresh
subscription-manager list
subscription-manager identify

yum clean all
subscription-manager repos
yum repolist
yum history 
yum history info 222

# cikarmak
subscription-manager release --unset 

  1. katello agent kurulumu. yum install -y katello-agent

Azure CLI proxy ve kurum proxy ayarları


1.  C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\certifi\cacert.pem   dizinindeki certca.pem dosaysına PEM formatında eklenir.

2. evn büyük hafle HTTP_PROXY=http://proxy:8080 ve HTTPS_PROXY=http://proxy:8080 girilir.

C:\Users\alpaoztu> az login 

C:\Users\alpaoztu>az group list --output table
Name              Location    Status
----------------  ----------  ---------
aorg              eastus      Succeeded
NetworkWatcherRG  eastus      Succeeded
lxrg              eastus      Succeeded



Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment