Vacuum permeability mu0 = 4 pi * 10^-7 T m/A. The straight wire produces concentric circular field lines (right-hand rule); the solenoid is uniform along its axis inside.
Left: a straight wire (red dot = current out of page) with concentric circular field lines; yellow dashed circle = observation radius r; orange arrow = B direction. Right: solenoid cross-section (blue dots/crosses = winding turns; orange arrows inside = uniform field B = mu0 n I; outside is essentially zero).
x = distance r [cm] from 0.1 to 100 (log10); y = magnetic flux density B [T] (log10); blue line = B(r) = mu0 I / (2 pi r) (slope -1); yellow dot = current (r, B_wire); orange dashed line = solenoid reference B = mu0 n I.
Ampere's law states that the line integral of $\boldsymbol{B}$ around a closed loop $C$ is proportional to the enclosed current:
$$\oint_C \boldsymbol{B} \cdot d\boldsymbol{\ell} = \mu_0\,I_{\mathrm{enc}}$$Magnetic flux density of an infinite straight wire (current $I$) at distance $r$:
$$B_{\mathrm{wire}}(r) = \frac{\mu_0\,I}{2\pi\,r}$$Interior field of an infinite solenoid (turns per unit length $n$):
$$B_{\mathrm{sol}} = \mu_0\,n\,I$$Force per unit length between parallel currents (current $I$, spacing $d$):
$$\frac{F}{L} = \frac{\mu_0\,I^2}{2\pi\,d}$$$\mu_0 = 4\pi \times 10^{-7}$ T m/A is the vacuum permeability, $I$ the current [A], $r$ the distance from the wire centre [m], $n$ turns per unit length [turns/m], $d$ the spacing between parallel wires [m].