A monoid is $(M, •)$ or $(M, μ, η)$? I have read two definitions of Monoid:


*

*wiki link 
In category theory, a monoid (or monoid object) $(M, μ, η)$ in a monoidal category $(C, ⊗, I)$ is an object $M$ together with two morphisms
$μ: M ⊗ M → M$ called multiplication,
$η: I → M$ called unit

*wiki link
Suppose that $S$ is a set and $•$ is some binary operation $S × S → S$, then $S$ with $•$ is a monoid if it satisfies the following two axioms:
Associativity:
For all $a, b, c \in S$, the equation $(a • b) • c = a • (b • c)$ holds.
Identity element:
There exists an element $e \in S$ such that for every element $a \in S$, the equations $e • a = a • e = a$ hold.
I know the 1st definition is from category theory's perspective, the 2nd one is from abstract algebra's. In my opinion, these two definitions defines the same concept from different way, but how could a monoid $(S, •)$ be consider as a category $(M, μ, η)$?
 A: A monoid in the second sense is a monoid object in the category of sets with its cartesian monoidal structure.
Specifically, take the category $\operatorname{Set}$ of sets, with the monoidal structure $A\otimes B := A \times B$ the cartesian product, and unit is a set with one element, $I:=\{ *\}$.
Then a monoid object in this category is a set $M$ with a multiplication $\mu: M\times M \to M:(a,b)\mapsto a\cdot b$ and a unit $\eta:\{*\} \to M: *\mapsto e$. The axioms of the monoid object give you the associativity of $\mu$ and the unitality of $e$.
Remember in general the triple $(M,\mu,\eta)$ refers to an object $M$ in the monoidal category, not a category itself. So for example, we could take the monoidal category $\operatorname{AbGp}$ of abelian groups, with the tensor product as its monoidal structure. Then a monoid object in $\operatorname{AbGp}$ is precisely the same thing as a ring (with unit). Similarly algebras are monoid objects in the category $\operatorname{Vect}$ of vector spaces.
